mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 17:00:43 +02:00
13 lines
516 B
C
13 lines
516 B
C
/* log.h - timestamped file logger with stderr and optional kernel-log fallback. */
|
|
#ifndef LOG_H
|
|
#define LOG_H
|
|
#include <stdio.h>
|
|
/* Selects the first writable log path, falling back to stderr if needed. */
|
|
void log_init(const char *path);
|
|
void log_msg(const char *fmt, ...);
|
|
/* Debug logging: compiled in, emitted only when log_set_debug(1) is on.
|
|
* Zero overhead otherwise. For per-poll detail — never for secrets. */
|
|
void log_set_debug(int on);
|
|
void log_dbg(const char *fmt, ...);
|
|
void log_close(void);
|
|
#endif |