diff options
author | 2023-02-01 19:28:08 +0100 | |
---|---|---|
committer | 2023-02-01 19:28:08 +0100 | |
commit | 730c6fe66ce122e2ce49a57df0cece4504e8471f (patch) | |
tree | b9deb52005f0ce88b46d041f4b32aee80cff834a /log.h | |
parent | e91664dfbd02bdbdf14c90e1fa1b30d85682e6b6 (diff) | |
download | log-730c6fe66ce122e2ce49a57df0cece4504e8471f.tar.gz log-730c6fe66ce122e2ce49a57df0cece4504e8471f.zip |
Add log.c and log.h
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +/* See LICENSE file for copyright and license details. */ + +#ifndef __LOG_H__ +#define __LOG_H__ + +typedef struct Log { + const char *filename; + int level; +} Log; + +Log *log_create(const char *); + +void log_debug(Log *, char *); +void log_error(Log *, char *); +void log_info(Log *, char *); +void log_warn(Log *, char *); + +int log_is_debug(Log *); +int log_is_error(Log *); +int log_is_info(Log *); +int log_is_warn(Log *); + + +#endif /* __LOG_H__ */ |