61 std::streambuf *buffer;
A UDP client socket.
Definition: udpsocket.h:110
A stream class specialized for logging.
Definition: log.h:58
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:329
virtual int log(Severity sev, csr line)=0
log to the unnamed log
Declarations for a wrapper for the UDP socket.
void severity(Severity sev)
Set the severity for the current message.
Definition: log.cpp:584
An abstract base class used by the log stream to write logs.
Definition: log.h:108
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:234
Class for logging to a file.
Definition: log.h:210
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:156
PlainFileLogger(const Path &fname)
Constructor.
Definition: log.cpp:220
std::ofstream f
The logging stream.
Definition: log.h:283
Class for logging to a logging server.
Definition: log.h:257
Manipulate path strings.
Definition: stringy.h:67
Semaphore sem4
Mutual exclusion lock.
Definition: log.h:111
Stream
Enumeration of the standard streams.
Definition: log.h:182
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:200
logger()
Constructor.
Definition: log.h:112
logger that interfaces to the Linux syslog
Definition: log.h:301
logstream(std::streambuf *buf)
Static pointer to only instance of the anonymous object.
Definition: log.cpp:532
std::ofstream f
The logging stream.
Definition: log.h:238
Severity
Severity levels for log messages.
Definition: sx.h:48
virtual ~logstream()
destructor
Definition: log.cpp:538
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:263
TraceLogger(const Path &fname)
Definition: log.cpp:286
virtual ~logger()
Destructor.
Definition: log.h:115
StdLogger(Stream cc)
Constructor.
Definition: log.h:190
UDPLogger(csr hostname, int port)
Definition: log.cpp:258
Class for logging to the std output streams.
Definition: log.h:178
const std::string & csr
Save some time typing and shorten parameter lines.
Definition: stringy.h:35
Declarations for the semaphore component of libcfi.
A semaphore for managing exclusive access to resources across multiple processes. ...
Definition: ipc.h:63
int log(Severity, csr line)
log to the unnamed log
Definition: log.cpp:299
UDPClientSocket socket
the udp socket connected to the logging server
Definition: log.h:261
An exception object with stream semantics.
std::ofstream f
The logging stream.
Definition: log.h:214
SystemLogger(csr ident)
Definition: log.cpp:321
Class for logging tracing output.
Definition: log.h:279
FileLogger(const Path &fname)
Constructor.
Definition: log.cpp:186
static logstream & instance()
Get an instance of the unnamed stream.
Definition: log.cpp:548