Public Member Functions |
|
| CSLog (FILE *s, int level) |
|
void | lock () |
|
void | unlock () |
|
void | getNow (char *buffer, size_t len) |
|
void | log (CSThread *self, const char *func, const char *file, int line, int level, const char *buffer) |
|
void | log (CSThread *self, int level, const char *) |
|
void | log (CSThread *self, int level, CSString &) |
|
void | log (CSThread *self, int level, CSString *) |
|
void | log (CSThread *self, int level, int) |
|
void | eol (CSThread *self, int level) |
|
void | logLine (CSThread *self, int level, const char *buffer) |
|
void | log_va (CSThread *self, int level, const char *func, const char *file, int line, const char *fmt, va_list ap) |
|
void | logf (CSThread *self, int level, const char *fmt,...) |
|
void | logf (CSThread *self, int level, const char *func, const char *file, int line, const char *fmt,...) |
|
void | flush () |
Static Public Attributes |
|
static const int | Protocol = 0 |
|
static const int | Error = 1 |
|
static const int | Warning = 2 |
|
static const int | Trace = 3 |
Private Member Functions |
|
void | header (CSThread *self, const char *func, const char *file, int line, int level) |
Private Attributes |
|
FILE * | iStream |
|
bool | iHeaderPending |
|
int | iLogLevel |
|
pthread_t | iLockThread |
|
int | iLockCount |
|
pthread_mutex_t | iMutex |
Definition at line 40 of file CSLog.h.