feat(log): use syslog logging

This commit is contained in:
2025-12-02 01:12:48 +01:00
parent bc8568f926
commit 115109efb9
4 changed files with 45 additions and 0 deletions

View File

@@ -31,4 +31,9 @@
#define CWS_LOG_WARNING(msg, ...) fprintf(stdout, _WARNING " " msg "\n", ##__VA_ARGS__)
#define CWS_LOG_INFO(msg, ...) fprintf(stdout, _INFO " " msg "\n", ##__VA_ARGS__)
void cws_log_init(void);
void cws_log_info(const char *fmt, ...);
void cws_log_error(const char *fmt, ...);
void cws_log_shutdown(void);
#endif