?? esmc_log.h
字號:
/* $Id: ESMC_Log.h,v 1.1.6.1 2002/04/24 03:25:20 erik Exp $ */#ifndef ESMC_LOGGER_H#define ESMC_LOGGER_H#include <stdio.h>#include "ESMC_BasicUtil.h"#define ESMC_LOG_LEVELS 3typedef enum { ESMC_LOGLEVEL_INFO = 0, ESMC_LOGLEVEL_ERROR, ESMC_LOGLEVEL_TIMER} ESMC_LogLevel;#define ESMC_LOG_STATES 4typedef enum { ESMC_LOGSTATE_QUIET = 0, ESMC_LOGSTATE_NORMAL, /* Reports timing and info */ ESMC_LOGSTATE_TIMER, ESMC_LOGSTATE_VERBOSE} ESMC_LogState;typedef struct mc_log_tag { FILE **log_fp; int num_fp; int labelio; int printtid; int printpid; int printtime; ESMC_LogState logstate;} ESMC_LogClass, *ESMC_Log;typedef enum { ESMC_LOGCONFIG_PRINTPID = 1, ESMC_LOGCONFIG_PRINTTID = 2, ESMC_LOGCONFIG_PRINTTIME = 3, ESMC_LOGCONFIG_LOGSTATE = 4} ESMC_LogOption;#ifdef __cplusplusextern "C" {#endif int ESMC_LogPrint(ESMC_Log logger, ESMC_LogLevel priority, char *format, ...); int ESMC_LogNew(ESMC_Log *log, char *logname, ESMC_LogState logstate, int labelio); int ESMC_LogConstruct(ESMC_Log log, char *logname, ESMC_LogState logstate, int labelio); int ESMC_LogDelete(ESMC_Log log); int ESMC_LogDestruct(ESMC_Log log); int ESMC_LogSetState(ESMC_Log log, ESMC_LogState logstate); int ESMC_LogFlush(ESMC_Log log); int ESMC_LogSetConfig(ESMC_Log log, ESMC_LogOption option1, ...); #ifdef __cplusplus}#endif#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -