23 lines
593 B
C
23 lines
593 B
C
#ifndef _COC_LOGFILE_H_
|
|
#define _COC_LOGFILE_H_
|
|
|
|
#include "str_buf.h"
|
|
|
|
#define LOG_ALL 31
|
|
#define LOG_SER 8
|
|
#define LOG_NET 4
|
|
#define LOG_INFO 2
|
|
#define LOG_MAIN 1
|
|
#define logfileStatusBuf(B) logfileStatusBuffer(B,sizeof(B))
|
|
|
|
void logfileStatusBuffer(char *buffer, int bufsize);
|
|
void logfileInit(char *path, int nodate, int use_stdout, int write_all);
|
|
void logfileOut(int mask, const char *fmt, ...);
|
|
void logfileOutBuf(int mask, Str_Buf *buf);
|
|
void logfileShowErr(char *text);
|
|
void logfileMask(int mask);
|
|
void logfileWrite(int mask);
|
|
void logfileClose(void);
|
|
|
|
#endif /* _COC_LOGFILE_H_ */
|