accesslog.h

来自「mms client」· C头文件 代码 · 共 42 行

H
42
字号
/* * accesslog.c - implement access logging functions * * this module is somewhat similar to general logging module log.c, * but is far more simplified and is meant for access logs; * i.e. no multiple 'debug levels' nor multiple files, just one * file to save access information * * This way the Kannel adminstration can destroy all standard log files * when extra room is needed and only store these access logs for * statistics/billing information * */#ifndef ACCESSLOG_H#define ACCESSLOG_H/* open access log with filename fname. if use_localtime != 0 then * all events are logged with localtime, not GMT */void alog_open(char *fname, int use_localtime);/* close access log. Do nothing if no open file */void alog_close(void);/* close and reopen access log. Do nothing if no open file */void alog_reopen(void);/* set access log to use localtimer in timestamps */void alog_use_localtime(void);/* set access log to use GMT in timestamps */void alog_use_gmtime(void);/* log given message with arguments (normal printf) into access log, * along with timestamp */void alog(const char *fmt, ...);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?