|
| Logger (std::string name) |
| Logger default constructor. More...
|
|
| Logger (std::string name, int levelMask) |
| Logger constructor with name and mask. More...
|
|
template<typename... Args> |
detail::LineLogger | trace (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.trace(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename... Args> |
detail::LineLogger | debug (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.debug(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename... Args> |
detail::LineLogger | info (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.info(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename... Args> |
detail::LineLogger | warn (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.warn(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename... Args> |
detail::LineLogger | error (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.error(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename... Args> |
detail::LineLogger | fatal (const char *fmt, const Args &...args) |
| Variadic argument style to log some message. Logger.fatal(format string, arg1, arg2, arg3, ...) call style.
|
|
template<typename T > |
detail::LineLogger | trace (const T &msg) |
| Log message and overload with more stream style message. Logger.trace(msg) << ".." call style.
|
|
template<typename T > |
detail::LineLogger | debug (const T &msg) |
| Log message and overload with more stream style message. Logger.debug(msg) << ".." call style.
|
|
template<typename T > |
detail::LineLogger | info (const T &msg) |
| Log message and overload with more stream style message. Logger.info(msg) << ".." call style.
|
|
template<typename T > |
detail::LineLogger | warn (const T &msg) |
| Log message and overload with more stream style message. Logger.warn(msg) << ".." call style.
|
|
template<typename T > |
detail::LineLogger | error (const T &msg) |
| Log message and overload with more stream style message. Logger.error(msg) << ".." call style.
|
|
template<typename T > |
detail::LineLogger | fatal (const T &msg) |
| Log message and overload with more stream style message. Logger.fatal(msg) << ".." call style.
|
|
detail::LineLogger | trace () |
| Trace level overloaded with stream style message. More...
|
|
detail::LineLogger | debug () |
| Debug level overloaded with stream style message. More...
|
|
detail::LineLogger | info () |
| Info level overloaded with stream style message. More...
|
|
detail::LineLogger | warn () |
| Warn level overloaded with stream style message. More...
|
|
detail::LineLogger | error () |
| Error level overloaded with stream style message. More...
|
|
detail::LineLogger | fatal () |
| Fatal level overloaded with stream style message. More...
|
|
void | set_level_mask (int levelMask) |
| Set level mask to this logger. More...
|
|
bool | should_log (LogLevels msgLevel) const |
| Check if a specific level should be logged in this logger. More...
|
|
std::string | name () const |
| Get name of the logger. More...
|
|
std::string | to_string () |
| Get user friendly information about this logger. Get informations such as log levels, sink list, etc... More...
|
|
SinkPtr | get_sink (std::string name) |
| Get pointer to a sink by name. More...
|
|
void | attach_sink (SinkPtr sink) |
| Attach a sink to this logger. More...
|
|
void | detach_sink (SinkPtr sink) |
| Detach a sink from this logger. More...
|
|
void | detach_all_sinks () |
| Detach all sinks from this logger.
|
|
void | attach_sink_list (std::vector< std::string > &sinkList) |
| Attach the entire vector of sinks to the logger. More...
|
|
void | attach_console () |
| Attach stdout and stderr to the logger. Special case of attach_sink()
|
|
void | detach_console () |
| Detach stdout and stderr from the logger if exist. Special case of detach_sink()
|
|
The Logger class Logger is the object to be called to log some message. Each logger may links to several Sinks as logging destinations.