mirror of
https://github.com/pevans/erc-c.git
synced 2024-08-21 15:28:59 +00:00
16 lines
302 B
C
16 lines
302 B
C
#ifndef _LOG_H_
|
|
#define _LOG_H_
|
|
|
|
#include <stdio.h>
|
|
|
|
#define LOG_FILENAME "/tmp/emp.log"
|
|
|
|
extern void log_write(int, const char *, ...);
|
|
extern void log_close();
|
|
extern void log_open(FILE *);
|
|
|
|
#define log_critical(...) log_write(0, __VA_ARGS__)
|
|
#define log_error(...) log_write(0, __VA_ARGS__)
|
|
|
|
#endif
|