kiba-engine
|
Logging system implementation. More...
#include <kiba/core/log.h>
#include <kiba/core/memory.h>
#include <kiba/format/format.h>
#include <kiba/platform/console.h>
Go to the source code of this file.
Functions | |
void | enable_stacktraces (log_level level) |
Enables output of the stacktrace. More... | |
void | disable_stacktraces (void) |
Disables output of the stacktrace. | |
void | log_set_active_level (log_level level) |
Set the minimum log level to log. More... | |
void | write_log_entry (log_level level, const char *file, long int line, const char *msg,...) |
Create log entry and write to output channel. More... | |
void | write_to_console (log_level level, const char *msg) |
Write string to console. More... | |
Logging system implementation.
Definition in file log.c.
void enable_stacktraces | ( | log_level | level | ) |
void log_set_active_level | ( | log_level | level | ) |
void write_log_entry | ( | log_level | level, |
const char * | file, | ||
long int | line, | ||
const char * | msg, | ||
... | |||
) |
Create log entry and write to output channel.
level | severity of the entry |
file | path to the file the entry was created in |
line | line in the file the entry was created in |
msg | log message, can contain format character sequences |
... | arguments to be used for formatting |