Introduce libseat_set_log_level
The default level is SILENT. log_init no longer takes an initial log level (so that calls to libseat_set_log_level prior to log_init work correctly).
This commit is contained in:
parent
48b9bf4707
commit
07ceeeebe0
5 changed files with 18 additions and 6 deletions
|
@ -43,7 +43,7 @@
|
|||
#define log_debug(str)
|
||||
#endif
|
||||
|
||||
void log_init(enum libseat_log_level level);
|
||||
void log_init(void);
|
||||
void _logf(enum libseat_log_level level, const char *fmt, ...) ATTRIB_PRINTF(2, 3);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue