12 #ifndef CMNCLIB_CMN_LOG_H
13 #define CMNCLIB_CMN_LOG_H
54 D_EXTERN
void CmnLog_Put(
int level,
const char *msgCode, ...);
85 #ifdef CMN_CLIB_HI_PERFORMANCE
86 #define CMNLOG_TRACE_START()
87 #define CMNLOG_TRACE_END()
89 #define CMNLOG_TRACE_START() clock_t cmnlogtrace_stclock=clock();CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_TRACE, "START %s", __func__)
90 #define CMNLOG_TRACE_END() CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_TRACE, "END %s(clocks=%d)", __func__, clock() - cmnlogtrace_stclock)
92 #define CMNLOG_TRACE(msg, ...) CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_TRACE, (msg), __VA_ARGS__)
93 #define CMNLOG_DEBUG(msg, ...) CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_DEBUG, (msg), __VA_ARGS__)
94 #define CMNLOG_INFO(msg, ...) CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_INFO, (msg), __VA_ARGS__)
95 #define CMNLOG_WARN(msg, ...) CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_WARN, (msg), __VA_ARGS__)
96 #define CMNLOG_ERROR(msg, ...) CmnLog_PutCmnClibLog(CMN_LOG_LEVEL_ERROR, (msg), __VA_ARGS__)
int level
Definition: CmnLog.h:31
char * msg
Definition: CmnLog.h:25
D_EXTERN void cmnLogEx_PutLog(CmnLogEx *log, CMN_LOG_LEVEL level, const char *msg, va_list args)
拡張ログ出力(内部用関数)
Definition: CmnLogEx.c:214
D_EXTERN CmnLogEx * CmnLogEx_Create(const char *logFile, CMN_LOG_LEVEL level, const char *msgFile)
拡張ログ出力関数初期化処理
Definition: CmnLogEx.c:78
char * file
Definition: CmnLog.h:32
D_EXTERN int CmnLogMessage_Get(CmnLogMessage *list, const char *msg_code, CmnLogMessage *msg)
ログメッセージ取得
Definition: CmnLogMessage.c:153
D_EXTERN void CmnLog_InitCmnClibLog(CmnLogEx *log, CMN_LOG_LEVEL level)
Definition: CmnLog.c:184
struct tag_CmnLogMessage CmnLogMessage
struct tag_CmnLogEx CmnLogEx
D_EXTERN CmnLogMessage * CmnLogMessage_Create(const char *msgFile)
ログメッセージ定義ファイル読み込み
Definition: CmnLogMessage.c:43
D_EXTERN void CmnLogEx_Put(CmnLogEx *log, CMN_LOG_LEVEL level, const char *msg,...)
拡張ログ出力
Definition: CmnLogEx.c:160
D_EXTERN void CmnLogEx_PutByCode(CmnLogEx *log, CMN_LOG_LEVEL level, const char *msgCode,...)
拡張ログ出力
Definition: CmnLogEx.c:183
D_EXTERN void CmnLogEx_Free(CmnLogEx *log)
拡張ログ出力共通関数終了処理
Definition: CmnLogEx.c:126
D_EXTERN int CmnLog_Init(const char *logFile, CMN_LOG_LEVEL level, const char *msgFile)
標準ログ出力関数初期化処理
Definition: CmnLog.c:85
D_EXTERN void CmnLog_Put(int level, const char *msgCode,...)
標準ログ出力
Definition: CmnLog.c:130
struct tag_CmnLogMessage * next
Definition: CmnLog.h:26
D_EXTERN void CmnLog_PutByCode(CmnLogEx *log, CMN_LOG_LEVEL level, const char *msgCode,...)
標準ログ出力
Definition: CmnLog.c:158
D_EXTERN void CmnLog_EndCmnClibLog()
Definition: CmnLog.c:192
D_EXTERN void CmnLogMessage_Free(CmnLogMessage *list)
ログメッセージリスト解放処理
Definition: CmnLogMessage.c:120
D_EXTERN void CmnLog_End()
標準ログ出力共通関数終了処理
Definition: CmnLog.c:110
Definition: CmnThread.h:23
CMN_LOG_LEVEL
Definition: CmnLog.h:38
CmnLogMessage * list
Definition: CmnLog.h:33
D_EXTERN void CmnLog_PutCmnClibLog(CMN_LOG_LEVEL level, const char *msgCode,...)
cmn-clib内部ログ出力
Definition: CmnLog.c:211
char * code
Definition: CmnLog.h:24
CmnThreadMutex * mutex
Definition: CmnLog.h:34