Logging functions for hcap (not an access log). More...
Typedefs | |
typedef enum log_level | log_level_e |
Enumerations | |
enum | log_level { LL_MESSAGE = 0, LL_WARNING, LL_ERROR, LL_DEBUG } |
Functions | |
bool | log_module_init (void) |
Initialise the logging module. | |
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). | |
void | log_module_close (void) |
Close the log file that was opened with log_open(). |
Logging functions for hcap (not an access log).
Module prefix: log_
typedef enum log_level log_level_e |
enum log_level |
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(). |