#include <loggingRemoteSyslog.h>
Inheritance diagram for RemoteSyslogLogger:


Public Member Functions | |
| RemoteSyslogLogger (int facility=LOG_USER) | |
| virtual | ~RemoteSyslogLogger (void) |
| Destructor. | |
| virtual int | open (const ACE_TCHAR *host) |
| Open a new connection. | |
| virtual int | reset (void) |
| No-op for UDP. | |
| virtual int | close (void) |
| No-op for UDP. | |
| virtual int | log (ACE_Log_Record &log_record) |
| virtual int | log (int priority, const ACE_TCHAR *msg) |
| Send log. | |
| virtual const ACE_TCHAR * | getIdentification () |
| Returns identification string, e.g. "Remote syslog". | |
| virtual const ACE_TCHAR * | getDestination () |
| Returns the destination of the logger, e.g. "dina.ijs.si". | |
Static Public Attributes | |
| facilityPair | m_facilityNames [] |
| Facility name to int value mapping table. | |
Private Attributes | |
| ACE_INET_Addr | m_remoteAddress |
| Remote address. | |
| ACE_SOCK_Dgram | m_socket |
| UDP socket object. | |
| int | m_facility |
| syslog facility. | |
| ACE_CString | m_address |
| Remote address. | |
|
|
Constructor facility has to be already shifted left by 3 bits. |
|
|
Destructor.
|
|
|
No-op for UDP.
Implements CacheLogger.
|
|
|
Returns the destination of the logger, e.g. "dina.ijs.si".
Implements CacheLogger.
|
|
|
Returns identification string, e.g. "Remote syslog".
Implements CacheLogger.
|
|
||||||||||||
|
Send log.
Implements CacheLogger.
|
|
|
ACE_Log_Record with msg_data and priority set. Logs the record's msg_data() and maps ACE priority to syslog priority. ACE_Log_Record.msg_data() copies message (performacne concern). Implements CacheLogger.
|
|
|
Open a new connection.
Implements CacheLogger.
|
|
|
No-op for UDP.
Implements CacheLogger.
|
|
|
Remote address.
|
|
|
syslog facility.
|
|
|
Facility name to int value mapping table.
|
|
|
Remote address.
|
|
|
UDP socket object.
|
1.3.8