#include <dsLog.h>
Public Types | |
enum | dsLogOpenFlags { LOG_OF_NONE = 0, LOG_OF_APPEND = 1, LOG_OF_TRUNCATE = 2, LOG_OF_ROTATE = 4 } |
Public Methods | |
dsLog (long mode, char *logname, dsLogOpenFlags openflags=LOG_OF_APPEND) | |
~dsLog () | |
int | mode (int mode=-1) |
void | log (int mode, const char *format,...) |
void | log (int mode, dsStrstream &inmsg) |
void | vlog (int mode, const char *format, va_list ap) |
Protected Methods | |
void | rotate (char *logname) |
Protected Attributes | |
int | _mode |
char * | _fname |
int | _fd |
dsLogOpenFlags | _openflags |
|
This enum controls how to deal with existing log. |
|
Create instance
|
|
|
|
|
|
write log line. log file is reopened for each call. copy data to UDP socket if udp data is set.
|
|
set/get current log mask |
|
|
|
|
|
|
|
|
|
|
|
|