diff options
author | pommicket <pommicket@gmail.com> | 2025-02-25 14:41:59 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-25 15:16:09 -0500 |
commit | 5626363c05bd379047cbe102feaceb18a04a738c (patch) | |
tree | 5e9599171fc38a61f1f53988627013b289377f1e /log.h | |
parent | 9b90ceee792cb51917af474ddcbc47edaacff16b (diff) |
start logger
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef LOG_H_ +#define LOG_H_ + +#include "util.h" + +enum { + LOG_WARNING = 20, + LOG_ERROR = 30, +}; + +void log_init(const char *out); +void log_message(int severity, const char *fmt, va_list args); +void log_error(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); +void log_warning(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); + +#endif |