PTLib  Version 2.10.4
PSystemLogToNetwork Class Reference

Log system output to the network using RFC 3164 BSD syslog protocol. More...

#include <syslog.h>

Inheritance diagram for PSystemLogToNetwork:
PSystemLogTarget PObject

List of all members.

Public Types

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

Detailed Description

Log system output to the network using RFC 3164 BSD syslog protocol.


Member Enumeration Documentation

anonymous enum
Enumerator:
RFC3164_Port 

Constructor & Destructor Documentation

PSystemLogToNetwork::PSystemLogToNetwork ( const PIPSocket::Address address,
WORD  port = RFC3164_Port,
unsigned  facility = 16 
)
Parameters:
addressHost to send data to
portPort for UDP packet
facilityfacility code
PSystemLogToNetwork::PSystemLogToNetwork ( const PString hostname,
WORD  port = RFC3164_Port,
unsigned  facility = 16 
)
Parameters:
hostnameHost to send data to
portPort for UDP packet
facilityfacility code

Member Function Documentation

virtual void PSystemLogToNetwork::Output ( PSystemLog::Level  level,
const char *  msg 
) [virtual]

Log an error into the system log.

Parameters:
levelLevel of this message
msgMessage to be logged

Implements PSystemLogTarget.


Member Data Documentation

unsigned PSystemLogToNetwork::m_facility [protected]
WORD PSystemLogToNetwork::m_port [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines