![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Logging library. More...
Go to the source code of this file.
Functions | |
void | _log_log (int level, const char *file, unsigned line, const char *fmt,...) |
Logs a message. For internal use: log_log() should be used instead. More... | |
void | log_logo_print (void) |
Prints a fancy ROOT-Sim logo on the terminal. | |
Variables | |
int | log_level = LOG_LEVEL |
The minimum log level of the messages to display. | |
bool | log_colored |
If set, uses color codes to color the log outputs. | |
struct { | |
const char * name | |
const char * color | |
} | levels [] |
The textual representations and the color codes of the logging levels. More... | |
Logging library.
This library can be used to produce logs during simulation runs.
Definition in file log.c.
void _log_log | ( | int | level, |
const char * | file, | ||
unsigned | line, | ||
const char * | fmt, | ||
... | |||
) |
Logs a message. For internal use: log_log() should be used instead.
level | the importance level of the message to log |
file | the file name where this function is being called |
line | the line number where this function is being called |
fmt | a printf-style format string for the message to log |
... | the list of arguments to fill in the format string fmt |
const { ... } levels[] |
The textual representations and the color codes of the logging levels.