Functions | |
void | log_message (const char *format,...) |
Log a message to the log. | |
void | log_debug_message (const char *format,...) |
Log a debug message to the log. | |
void | log_warning (const char *format,...) |
Log a warning to the log. | |
void | log_fatal (const char *format,...) |
Log a message, print an error to stderr and exit(EXIT_FAILURE). | |
bool | log_module_init (void) |
Initialise the logging module. | |
void | log_module_close (void) |
Close the log file that was opened with log_open(). |
void log_debug_message | ( | const char * | format, | |
... | ||||
) |
Log a debug message to the log.
The message is repeated on stderr. The format follows printf().
format | The formatting of the log message, see printf(). |
void log_fatal | ( | const char * | format, | |
... | ||||
) |
Log a message, print an error to stderr and exit(EXIT_FAILURE).
Note that registered atexit() functions will be called.
format | The formatting of the log message, see printf(). |
void log_message | ( | const char * | format, | |
... | ||||
) |
Log a message to the log.
Follows the same syntax as printf().
format | The formatting of the log message, see printf(). |
void log_module_close | ( | void | ) |
Close the log file that was opened with log_open().
bool log_module_init | ( | void | ) |
Initialise the logging module.
void log_warning | ( | const char * | format, | |
... | ||||
) |
Log a warning to the log.
Follows the same syntax as printf().
format | The formatting of the log message, see printf(). |