Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/utils.h @ 374:bd5638c21834
Improve logging system (traces)
There are now two trace logging levels:
* tracelog_level = 1:
Most messages from the log window are written to disk (LPRINT_LOG)
* tracelog_level =2:
LPRINT_LOG & LPRINT_DEBUG messages are written to disk
The trace file name is set with the "tracelog_file" option.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 25 Jul 2005 21:46:35 +0100 |
parents | 33b8e801ffa6 |
children | 2f9852610cf4 |
comparison
equal
deleted
inserted
replaced
373:af2f8ddf6a1b | 374:bd5638c21834 |
---|---|
1 #ifndef __UTILS_H__ | 1 #ifndef __UTILS_H__ |
2 #define __UTILS_H__ 1 | 2 #define __UTILS_H__ 1 |
3 | 3 |
4 void ut_InitDebug(unsigned int level, const char *file); | 4 void ut_InitDebug(unsigned int level, const char *file); |
5 void ut_WriteLog(const char *fmt, ...); | 5 void ut_WriteLog(unsigned int flag, const char *data); |
6 | 6 |
7 int checkset_perm(const char *name, unsigned int setmode); | 7 int checkset_perm(const char *name, unsigned int setmode); |
8 | 8 |
9 int to_iso8601(char *dststr, time_t timestamp); | 9 int to_iso8601(char *dststr, time_t timestamp); |
10 time_t from_iso8601(const char *timestamp, int utc); | 10 time_t from_iso8601(const char *timestamp, int utc); |