51class logbuf :
public std::streambuf {
62 logbuf(
int loglevel,
int fd);
A streambuffer, logging via syslog.
bool _use_syslog
Log flag.
char * ptr
Pointer to next char in buffer.
char buf[1024]
The internal buffer for holding messages.
void useFileDescriptor()
Write logs to the file descriptor passed in the constructor.
void useSyslog()
Write logs using syslog.
unsigned int len
Current length of buffer.
int _fd
File descriptor to use when switched off.
int overflow(int c=EOF)
Called by the associated ostream to write a character.
int _level
The log level to use with syslog.
void setLevel(int newlevel)
Modifies the loglevel of this instance.