#include <syslog.h>
Inheritance diagram for PSystemLogToNetwork:

Public Types | |
| RFC3164_Port = 514 | |
| enum | { RFC3164_Port = 514 } |
Public Member Functions | |
Construction | |
| PSystemLogToNetwork (const PIPSocket::Address &address, WORD port=RFC3164_Port, unsigned facility=16) | |
| PSystemLogToNetwork (const PString &hostname, WORD port=RFC3164_Port, unsigned facility=16) | |
Overrides of PSystemLogTarget | |
| virtual void | Output (PSystemLog::Level level, const char *msg) |
| Log an error into the system log. | |
Protected Attributes | |
| PIPSocket::Address | m_host |
| WORD | m_port |
| unsigned | m_facility |
| PUDPSocket | m_socket |
| PSystemLogToNetwork::PSystemLogToNetwork | ( | const PIPSocket::Address & | address, | |
| WORD | port = RFC3164_Port, |
|||
| unsigned | facility = 16 | |||
| ) |
| address | Host to send data to |
| port | Port for UDP packet |
| facility | facility code |
| PSystemLogToNetwork::PSystemLogToNetwork | ( | const PString & | hostname, | |
| WORD | port = RFC3164_Port, |
|||
| unsigned | facility = 16 | |||
| ) |
| hostname | Host to send data to |
| port | Port for UDP packet |
| facility | facility code |
| virtual void PSystemLogToNetwork::Output | ( | PSystemLog::Level | level, | |
| const char * | msg | |||
| ) | [virtual] |
Log an error into the system log.
| level | Level of this message |
| msg | Message to be logged |
Implements PSystemLogTarget.
unsigned PSystemLogToNetwork::m_facility [protected] |
PIPSocket::Address PSystemLogToNetwork::m_host [protected] |
WORD PSystemLogToNetwork::m_port [protected] |
PUDPSocket PSystemLogToNetwork::m_socket [protected] |
1.4.7