A class for dispatching log messages.
See the long description for the log (Logging) module for more detailed usage information.
|
bool | Startup (LogMessageHandler &message_handler) |
| Start logging. More...
|
|
void | Shutdown () |
| Stop logging. More...
|
|
bool | CanLog (int pri) const noexcept |
| Determine whether a priority level can be logged using the mask given via SetLogMask(). More...
|
|
void | Log (int pri, const char *format,...) |
| Log a message. More...
|
|
|
void | Debug (const char *format,...) |
| Log a message at debug priority.
|
|
void | Info (const char *format,...) |
| Log a message at informational priority.
|
|
void | Notice (const char *format,...) |
| Log a message at notice priority.
|
|
void | Warning (const char *format,...) |
| Log a message at warning priority.
|
|
void | Error (const char *format,...) |
| Log a message at error priority.
|
|
void | Critical (const char *format,...) |
| Log a message at critical priority.
|
|
void | Alert (const char *format,...) |
| Log a message at alert priority.
|
|
void | Emergency (const char *format,...) |
| Log a message at emergency priority.
|
|
|
LogDispatchPolicy | dispatch_policy () const noexcept |
| Get the current log dispatch policy.
|
|
int | log_mask () const noexcept |
| Get the current log mask.
|
|
int | log_action () const noexcept |
| Get the current log action.
|
|
int | syslog_facility () const noexcept |
| Get the current Syslog facility value.
|
|
const char * | syslog_hostname () const noexcept |
| Get the current Syslog HOSTNAME.
|
|
const char * | syslog_app_name () const noexcept |
| Get the current Syslog APP-NAME.
|
|
const char * | syslog_procid () const noexcept |
| Get the current Syslog PROCID.
|
|
const EtcPalLogParams & | log_params () const noexcept |
| Get the log params used by this logger. More...
|
|
|
Logger & | SetDispatchPolicy (LogDispatchPolicy new_policy) noexcept |
| Change the dispatch policy of this logger. More...
|
|
Logger & | SetLogMask (int log_mask) noexcept |
| Set a new log mask. More...
|
|
Logger & | SetLogAction (int log_action) noexcept |
| Set the types of log messages to create and dispatch to the LogMessageHandler.
|
|
Logger & | SetSyslogFacility (int facility) noexcept |
| Set the Syslog facility value; see RFC 5424 § 6.2.1.
|
|
Logger & | SetSyslogHostname (const char *hostname) noexcept |
| Set the Syslog HOSTNAME; see RFC 5424 § 6.2.4.
|
|
Logger & | SetSyslogHostname (const std::string &hostname) noexcept |
| Set the Syslog HOSTNAME; see RFC 5424 § 6.2.4.
|
|
Logger & | SetSyslogAppName (const char *app_name) noexcept |
| Set the Syslog APP-NAME; see RFC 5424 § 6.2.5.
|
|
Logger & | SetSyslogAppName (const std::string &app_name) noexcept |
| Set the Syslog APP-NAME; see RFC 5424 § 6.2.5.
|
|
Logger & | SetSyslogProcId (const char *proc_id) noexcept |
| Set the Syslog PROCID; see RFC 5424 § 6.2.6.
|
|
Logger & | SetSyslogProcId (const std::string &proc_id) noexcept |
| Set the Syslog PROCID; see RFC 5424 § 6.2.6.
|
|
Logger & | SetSyslogProcId (int proc_id) noexcept |
| Set the Syslog PROCID; see RFC 5424 § 6.2.6.
|
|
Logger & | SetThreadPriority (unsigned int priority) noexcept |
| Set the priority of the log dispatch thread. More...
|
|
Logger & | SetThreadStackSize (unsigned int stack_size) noexcept |
| Set the stack size of the log dispatch thread. More...
|
|
Logger & | SetThreadName (const char *name) noexcept |
| Set the name of the log dispatch thread. More...
|
|
Logger & | SetThreadName (const std::string &name) noexcept |
| Set the name of the log dispatch thread. More...
|
|
Logger & | SetThreadPlatformData (void *platform_data) noexcept |
| Set the platform-specific parameter data of the log dispatch thread. More...
|
|