Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
SyslogLogger (LogLevel log_level=LL_DEBUG) | |
Constructor. More... | |
SyslogLogger (const char *ident, LogLevel log_level=LL_DEBUG) | |
Constructor with ident. More... | |
virtual | ~SyslogLogger () |
Destructor. More... | |
virtual void | log_debug (const char *component, const char *format,...) |
virtual void | log_info (const char *component, const char *format,...) |
virtual void | log_warn (const char *component, const char *format,...) |
virtual void | log_error (const char *component, const char *format,...) |
virtual void | vlog_debug (const char *component, const char *format, va_list va) |
virtual void | vlog_info (const char *component, const char *format, va_list va) |
virtual void | vlog_warn (const char *component, const char *format, va_list va) |
virtual void | vlog_error (const char *component, const char *format, va_list va) |
virtual void | log_debug (const char *component, Exception &e) |
virtual void | log_info (const char *component, Exception &e) |
virtual void | log_warn (const char *component, Exception &e) |
virtual void | log_error (const char *component, Exception &e) |
virtual void | tlog_debug (struct timeval *t, const char *component, const char *format,...) |
virtual void | tlog_info (struct timeval *t, const char *component, const char *format,...) |
virtual void | tlog_warn (struct timeval *t, const char *component, const char *format,...) |
virtual void | tlog_error (struct timeval *t, const char *component, const char *format,...) |
virtual void | tlog_debug (struct timeval *t, const char *component, Exception &e) |
virtual void | tlog_info (struct timeval *t, const char *component, Exception &e) |
virtual void | tlog_warn (struct timeval *t, const char *component, Exception &e) |
virtual void | tlog_error (struct timeval *t, const char *component, Exception &e) |
virtual void | vtlog_debug (struct timeval *t, const char *component, const char *format, va_list va) |
virtual void | vtlog_info (struct timeval *t, const char *component, const char *format, va_list va) |
virtual void | vtlog_warn (struct timeval *t, const char *component, const char *format, va_list va) |
virtual void | vtlog_error (struct timeval *t, const char *component, const char *format, va_list va) |
![]() | |
Logger (LogLevel log_level=LL_DEBUG) | |
Constructor. More... | |
virtual | ~Logger () |
Virtual empty destructor. More... | |
virtual void | set_loglevel (LogLevel level) |
Sets the log level. More... | |
virtual LogLevel | loglevel () |
Get log level. More... | |
virtual void | log (LogLevel level, const char *component, const char *format,...) |
Log message of given log level. More... | |
virtual void | log (LogLevel level, const char *component, Exception &e) |
Log exception for given log level. More... | |
virtual void | vlog (LogLevel level, const char *component, const char *format, va_list va) |
Log message for given log level. More... | |
virtual void | tlog (LogLevel level, struct timeval *t, const char *component, const char *format,...) |
Log message of given log level and time. More... | |
virtual void | tlog (LogLevel level, struct timeval *t, const char *component, Exception &e) |
Log exception for given log level. More... | |
virtual void | vtlog (LogLevel level, struct timeval *t, const char *component, const char *format, va_list va) |
Log message for given log level and time. More... | |
Additional Inherited Members | |
![]() | |
enum | LogLevel { LL_DEBUG = 0, LL_INFO = 1, LL_WARN = 2, LL_ERROR = 4, LL_NONE = 8 } |
Log level. More... | |
![]() | |
LogLevel | log_level |
Minimum log level. More... | |
Interface for logging to syslog. The SyslogLogger will pipe all output to the syslog.
Constructor with ident.
ident | ident string passed to openlog. |
log_level | minimum level to log |
Definition at line 64 of file syslog.cpp.
|
virtual |
Destructor.
Definition at line 78 of file syslog.cpp.
|
virtual |
Log debug message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 153 of file syslog.cpp.
|
virtual |
Log debug exception.
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 189 of file syslog.cpp.
|
virtual |
Log error message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 180 of file syslog.cpp.
|
virtual |
Log error exception.
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 225 of file syslog.cpp.
|
virtual |
Log informational message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 162 of file syslog.cpp.
|
virtual |
Log informational exception.
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 201 of file syslog.cpp.
|
virtual |
Log warning message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 171 of file syslog.cpp.
|
virtual |
Log warning exception.
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 213 of file syslog.cpp.
|
virtual |
Log debug message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 237 of file syslog.cpp.
|
virtual |
Log debug exception for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 273 of file syslog.cpp.
|
virtual |
Log error message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 264 of file syslog.cpp.
|
virtual |
Log error exception for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 333 of file syslog.cpp.
|
virtual |
Log informational message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 246 of file syslog.cpp.
|
virtual |
Log informational exception for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 293 of file syslog.cpp.
|
virtual |
Log warning message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
Implements fawkes::Logger.
Definition at line 255 of file syslog.cpp.
|
virtual |
Log warning exception for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
e | exception to log, exception messages will be logged |
Implements fawkes::Logger.
Definition at line 313 of file syslog.cpp.
|
virtual |
Log debug message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 89 of file syslog.cpp.
|
virtual |
Log error message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 137 of file syslog.cpp.
|
virtual |
Log informational message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 105 of file syslog.cpp.
|
virtual |
Log warning message.
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 121 of file syslog.cpp.
|
virtual |
Log debug message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 353 of file syslog.cpp.
|
virtual |
Log error message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 425 of file syslog.cpp.
|
virtual |
Log informational message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 377 of file syslog.cpp.
|
virtual |
Log warning message for specific time.
t | time for this message to log |
component | component, used to distuinguish logged messages |
format | format of the message, see man page of sprintf for available tokens. |
va | variable argument list |
Implements fawkes::Logger.
Definition at line 401 of file syslog.cpp.