1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-01 04:04:28 +00:00
erc-c/include/log.h

16 lines
302 B
C
Raw Normal View History

2017-11-22 05:24:51 +00:00
#ifndef _LOG_H_
#define _LOG_H_
2017-12-06 22:52:33 +00:00
#include <stdio.h>
2017-12-02 19:05:53 +00:00
#define LOG_FILENAME "/tmp/emp.log"
2017-11-22 05:24:51 +00:00
extern void log_write(int, const char *, ...);
extern void log_close();
2017-12-06 22:43:30 +00:00
extern void log_open(FILE *);
2017-11-22 05:24:51 +00:00
#define log_critical(...) log_write(0, __VA_ARGS__)
#define log_error(...) log_write(0, __VA_ARGS__)
#endif