mirror of
https://github.com/log-chipper/chipper.git
synced 2026-06-11 09:13:23 -05:00
22 lines
452 B
C
22 lines
452 B
C
/**
|
|
* @file chipper_log.h
|
|
* @author Darwin Cereska (darwin@darwincereska.dev)
|
|
* @brief Logging functions
|
|
*/
|
|
|
|
#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
|