ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
log.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <ROOT-Sim.h>
14 
15 extern void vlogger(enum log_level level, char *file, unsigned line, const char *fmt, ...);
16 
22 #define logger(level, ...) vlogger(level, __FILE__, __LINE__, __VA_ARGS__)
23 
24 extern void log_init(FILE *file);
ROOT-Sim header for model development.
log_level
Definition: ROOT-Sim.h:107
void log_init(FILE *file)
Initialize the logging subsystem.
Definition: log.c:69
void vlogger(enum log_level level, char *file, unsigned line, const char *fmt,...)
Logs a message. Don't use this function directly, rely on the logger() macro instead.
Definition: log.c:43