ACE 8.0.1
|
Implements an ACE_Log_Msg_Backend that logs messages to a UNIX system's syslog facility. More...
#include <Log_Msg_UNIX_Syslog.h>
Public Member Functions | |
ACE_Log_Msg_UNIX_Syslog ()=default | |
Constructor. | |
~ACE_Log_Msg_UNIX_Syslog () override | |
Destructor. | |
int | open (const ACE_TCHAR *logger_key) override |
Open a new event log. | |
int | reset () override |
Reset the backend. | |
int | close () override |
Close the backend completely. | |
ssize_t | log (ACE_Log_Record &log_record) override |
This is called when we want to log a message. | |
![]() | |
virtual | ~ACE_Log_Msg_Backend ()=default |
No-op virtual destructor. | |
Private Member Functions | |
int | convert_log_priority (ACE_UINT32 lm_priority) |
Convert an ACE_Log_Priority value to the corresponding syslog priority. | |
int | convert_log_mask (int lm_mask) |
Convert an ACE_Log_Priority mask to the corresponding syslog mask value. | |
Implements an ACE_Log_Msg_Backend that logs messages to a UNIX system's syslog facility.
|
default |
Constructor.
|
override |
Destructor.
|
overridevirtual |
Close the backend completely.
Implements ACE_Log_Msg_Backend.
Convert an ACE_Log_Priority mask to the corresponding syslog mask value.
|
private |
Convert an ACE_Log_Priority value to the corresponding syslog priority.
|
overridevirtual |
This is called when we want to log a message.
Implements ACE_Log_Msg_Backend.
Open a new event log.
Initialize the event logging facility.
logger_key | The name of the calling program. This name is used as the ident in the syslog entries. If it is 0 (no name), the application name as returned from ACE_Log_Msg::program_name() is used. |
Implements ACE_Log_Msg_Backend.
|
overridevirtual |
Reset the backend.
Implements ACE_Log_Msg_Backend.