1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-27 11:24:34 -05:00
kernel/kernelmq/logger.h

19 lines
733 B
C
Raw Normal View History

2017-11-02 08:00:40 -04:00
#ifndef KERNELMQ_INCLUDED_LOGGER
#define KERNELMQ_INCLUDED_LOGGER 1
2017-11-01 01:01:29 -04:00
2017-11-05 23:30:25 -05:00
#define logger_debug_from(source, ...) logger_log(0, source, __VA_ARGS__)
#define logger_info_from(source, ...) logger_log(1, source, __VA_ARGS__)
#define logger_warn_from(source, ...) logger_log(2, source, __VA_ARGS__)
#define logger_fail_from(source, ...) logger_log(3, source, __VA_ARGS__)
2017-11-05 22:48:16 -05:00
2017-11-05 23:30:25 -05:00
#define logger_debug(...) logger_debug_from(0, __VA_ARGS__)
#define logger_info(...) logger_info_from(0, __VA_ARGS__)
#define logger_warn(...) logger_warn_from(0, __VA_ARGS__)
#define logger_fail(...) logger_fail_from(0, __VA_ARGS__)
2017-11-05 23:21:18 -05:00
void logger_log(unsigned char level, const char *source, const char *format, ...);
2017-11-01 01:01:29 -04:00
2020-11-27 20:38:32 -05:00
void print(const char *format, ...);
2017-11-01 01:01:29 -04:00
#endif