20 lines
225 B
C
20 lines
225 B
C
|
#ifndef LOGGER_H
|
||
|
#define LOGGER_H
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
struct logger
|
||
|
{
|
||
|
FILE *log;
|
||
|
char log_file[256];
|
||
|
};
|
||
|
|
||
|
extern struct logger logger;
|
||
|
|
||
|
void log_init(char *file);
|
||
|
void log_close();
|
||
|
|
||
|
void xlog(char *fmt, ...);
|
||
|
|
||
|
#endif
|