#include <stdio.h>
#include <errno.h>
#include <string.h>
Go to the source code of this file.
◆ __FILENAME__
Value:(strrchr(__FILE__, '/') ? \
strrchr(__FILE__, '/') + 1 : __FILE__)
Definition at line 7 of file log.h.
◆ clean_errno
#define clean_errno |
( |
| ) |
(errno == 0 ? "None" : strerror(errno)) |
Definition at line 11 of file log.h.
◆ log_debug
#define log_debug |
( |
|
M, |
|
|
|
... |
|
) |
| |
Definition at line 17 of file log.h.
◆ log_error
#define log_error |
( |
|
M, |
|
|
|
... |
|
) |
| |
Value:fprintf(stderr, "\33[31mERR\33[39m " M " \33[90m at %s (%s:%d) \33[94merrno: %s\33[39m\n", ## \
__VA_ARGS__, \
__func__, \
__FILE__, \
__LINE__, \
Definition at line 28 of file log.h.
◆ log_info
#define log_info |
( |
|
M, |
|
|
|
... |
|
) |
| |
Value:fprintf(stderr, "\33[32mINFO\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ## \
__VA_ARGS__, \
__func__, \
__LINE__)
Definition at line 44 of file log.h.
◆ log_warn
#define log_warn |
( |
|
M, |
|
|
|
... |
|
) |
| |
Value:fprintf(stderr, "\33[91mWARN\33[39m " M " \33[90m at %s (%s:%d) \33[94merrno: %s\33[39m\n", ## \
__VA_ARGS__, \
__func__, \
__FILE__, \
__LINE__, \
Definition at line 36 of file log.h.