diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-05-22 13:43:46 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-05-22 14:48:29 +0200 |
commit | c394c09330760985d282cb866a06dea6294012aa (patch) | |
tree | 5a120d309ef25552b719844474993184a8707608 /logging.h |
first public release
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'logging.h')
-rw-r--r-- | logging.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logging.h b/logging.h new file mode 100644 index 0000000..b9174bf --- /dev/null +++ b/logging.h @@ -0,0 +1,10 @@ +#ifndef LOGGING_H +#define LOGGING_H 1 + +#define LOG log_fmt_colored + +typedef enum log_priority { LP_DEBUG = 0, NOTICE, WARNING, ERROR, EVENT, PROTO } log_priority; + +void log_fmt_colored(log_priority prio, const char * fmt, ...); + +#endif |