Add command line and config file option log-level

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-20 01:21:51 +00:00
parent 1bcd7f2f7a
commit d9409ae2c9
5 changed files with 24 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ attr_malloc struct log *log_new(void);
attr_nonnull_all void log_destroy(struct log *);
attr_nonnull(1) void log_set_level(struct log *l, int level);
attr_nonnull_all void log_add_target(struct log *, struct log_target *);
attr_const enum log_level string_to_log_level(const char *);
extern thread_local struct log *tls_logger;