mirror of
https://github.com/HardySimpson/zlog
synced 2025-03-28 21:13:21 +00:00
Add dzlog_level_enabled()
This commit is contained in:
parent
2a168ab859
commit
796ac2ce52
@ -1205,4 +1205,9 @@ int zlog_level_enabled(zlog_category_t *category, const int level)
|
||||
return enable;
|
||||
}
|
||||
|
||||
int dzlog_level_enabled(const int level)
|
||||
{
|
||||
return zlog_level_enabled(zlog_default_category, level);
|
||||
}
|
||||
|
||||
const char *zlog_version(void) { return ZLOG_VERSION; }
|
||||
|
@ -68,6 +68,7 @@ void hzlog(zlog_category_t * category,
|
||||
|
||||
int dzlog_init(const char *confpath, const char *cname);
|
||||
int dzlog_set_category(const char *cname);
|
||||
int dzlog_level_enabled(const int level);
|
||||
|
||||
void dzlog(const char *file, size_t filelen,
|
||||
const char *func, size_t funclen,
|
||||
|
Loading…
x
Reference in New Issue
Block a user