100 bool autoDelete =
true 108 class Buffer :
public streambuf {
111 virtual int_type overflow(int_type=EOF);
112 virtual int_type underflow();
141 ) { m_thresholdLevel = level; }
252 enum { RFC3164_Port = 514 };
258 WORD port = RFC3164_Port,
259 unsigned facility = 16
263 WORD port = RFC3164_Port,
264 unsigned facility = 16
303 #elif !defined(P_VXWORKS) 333 #define PSYSTEMLOG(level, variables) \ 334 if (PSystemLog::GetTarget().GetThresholdLevel() >= PSystemLog::level) { \ 335 PSystemLog P_systemlog(PSystemLog::level); \ 336 P_systemlog << variables; \ const PFilePath & GetFilePath() const
Get the path to the file being logged to.
Definition: syslog.h:238
Log a non-fatal error.
Definition: syslog.h:60
friend class PSystemLogTarget
Definition: syslog.h:121
Log a warning.
Definition: syslog.h:62
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
This class abstracts the operating system dependent error logging facility.
Definition: syslog.h:47
A socket channel that uses the UDP transport on the Internet Protocol.
Definition: udpsock.h:47
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
PSystemLog::Level m_thresholdLevel
Definition: syslog.h:171
Level
define the different error log levels
Definition: syslog.h:54
unsigned m_facility
Definition: syslog.h:281
friend class Buffer
Definition: syslog.h:117
Log from standard error stream.
Definition: syslog.h:56
PTextFile m_file
Definition: syslog.h:242
Log even more debugging information.
Definition: syslog.h:70
Log a bucket load of debugging information.
Definition: syslog.h:76
Log system output to nowhere.
Definition: syslog.h:183
Log more debugging information.
Definition: syslog.h:68
Log system output to stderr.
Definition: syslog.h:195
Log system output to the network using RFC 3164 BSD syslog protocol.
Definition: syslog.h:248
Log a real lot of debugging information.
Definition: syslog.h:74
PSystemLog::Level GetThresholdLevel() const
Get the current level for logging.
Definition: syslog.h:148
The character string class.
Definition: pstring.h:108
Log debugging information.
Definition: syslog.h:66
static PSystemLogTarget & GetTarget()
Get the current target/destination for system logging.
PSystemLog(Level level)
Create a system log stream.
~PSystemLog()
Destroy the string stream, deleting the stream buffer.
Definition: syslog.h:87
Log general information.
Definition: syslog.h:64
A class describing an IP address.
Definition: ipsock.h:75
PUDPSocket m_socket
Definition: syslog.h:282
Log a lot of debugging information.
Definition: syslog.h:72
Log system output to the Posix syslog() function.
Definition: syslog.h:306
Log system output to a file.
Definition: syslog.h:213
void SetThresholdLevel(PSystemLog::Level level)
Set the level at which errors are logged.
Definition: syslog.h:139
A class representing a a structured file that is portable accross CPU architectures.
Definition: textfile.h:49
static void SetTarget(PSystemLogTarget *target, bool autoDelete=true)
Set the current target/destination for system logging.
WORD m_port
Definition: syslog.h:280
Log a fatal error.
Definition: syslog.h:58
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
virtual void Output(PSystemLog::Level, const char *)
Log an error into the system log.
Definition: syslog.h:187
PIPSocket::Address m_host
Definition: syslog.h:279