diff options
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,9 @@ #include <celeritas.h> -void log_output(char* module, LogLevel level, const char* message, ...) { +static const char* log_level_strings[] = { "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE" }; + +void log_output(char* module, loglevel level, const char* message, ...) { char out_msg[4096]; - printf("Msg: %s\n", message); + printf("[%s] %s - %s\n", module, log_level_strings[level], message); } |