Files
chipper/include/chipper_log.h
T
darwincereska 4a0aabce43 feat: first init
- Simple unix daemon
- Python, Go, and C client
2026-04-13 22:34:27 -04:00

21 lines
399 B
C

/**
* @file chipper_log.h
* @brief Low-level log output
*/
#ifndef CHIPPER_LOG_H
#define CHIPPER_LOG_H
#include <stdio.h>
typedef struct {
const char *path;
FILE *file;
} ChipperLog;
int chipper_log_open(ChipperLog *log, const char *path);
void chipper_log_close(ChipperLog *log);
int chipper_log_write(ChipperLog *log, const char *timestamp, const char *line);
#endif // CHIPPER_LOG_H