Go to the source code of this file.
Definition at line 64 of file Log.h.
Definition at line 65 of file Log.h.
Definition at line 67 of file Log.h.
Definition at line 66 of file Log.h.
typedef void Log_traceCallback(enum LOG_LEVELS level, const char *message) |
Definition at line 81 of file Log.h.
Enumerator |
---|
INVALID_LEVEL |
|
TRACE_MAXIMUM |
|
TRACE_MEDIUM |
|
TRACE_MINIMUM |
|
TRACE_PROTOCOL |
|
LOG_ERROR |
|
LOG_SEVERE |
|
LOG_FATAL |
|
Definition at line 35 of file Log.h.
void Log |
( |
enum LOG_LEVELS |
log_level, |
|
|
int |
msgno, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Log a message. If possible, all messages should be indexed by message number, and the use of the format string should be minimized or negated altogether. If format is provided, the message number is only used as a message label.
- Parameters
-
log_level | the log level of the message |
msgno | the id of the message to use if the format string is NULL |
aFormat | the printf format string to be used if the message id does not exist |
... | the printf inserts |
Definition at line 417 of file Log.c.
void Log_stackTrace |
( |
enum LOG_LEVELS |
log_level, |
|
|
int |
msgno, |
|
|
int |
thread_id, |
|
|
int |
current_depth, |
|
|
const char * |
name, |
|
|
int |
line, |
|
|
int * |
rc |
|
) |
| |
The reason for this function is to make trace logging as fast as possible so that the function exit/entry history can be captured by default without unduly impacting performance. Therefore it must do as little as possible.
- Parameters
-
log_level | the log level of the message |
msgno | the id of the message to use if the format string is NULL |
aFormat | the printf format string to be used if the message id does not exist |
... | the printf inserts |
Definition at line 448 of file Log.c.
void Log_terminate |
( |
void |
| ) |
|
Definition at line 67 of file Log.c.