source: libcf/trunk/include/cf_log.h@ 128

Last change on this file since 128 was 128, checked in by cheese, 11 years ago

#1 add bitwise util from ARIA of chevalier

File size: 1.1 KB
Line 
1/**
2 * \file cf_log.h
3 *
4 * \author myusgun <myusgun@gmail.com>
5 *
6 * \brief 로그
7 *
8 * \remarks
9 * 매핑 ID 값을 이용하여 해당 로그에 기록 <br />
10 * 로그 레벨을 적용할 때도 용이하며 define 이나 enumeration 등을 활용하면 좋음
11 *
12 * \example log.c
13 */
14#ifndef __CF_LOG_H__
15#define __CF_LOG_H__
16
17#include "cf_base.h"
18
19/** 로그 옵션 플래그 */
20typedef enum
21{
22 CF_LOG_DEFAULT_BUFFER = -1, /**< 기본 버퍼 크기 사용 */
23 CF_LOG_NO_BUFFER = 0, /**< 버퍼없이 파일에 바로 쓰기 */
24} CF_LOG_OPTION;
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30CF_EXPORT int
31CF_Log_Initialize (const int poolSize);
32
33CF_EXPORT int
34CF_Log_Finalize (void);
35
36CF_EXPORT int
37CF_Log_Open (const int mapid,
38 const char * path,
39 const int memsize);
40
41CF_EXPORT int
42CF_Log_Close (const int mapid);
43
44CF_EXPORT int
45CF_Log_Write (const int mapid,
46 const char * prefix,
47 const char * fmt, ...);
48
49CF_EXPORT int
50CF_Log_Flush (const int mapid);
51
52CF_EXPORT int
53CF_Log_SetMT (const int mapid,
54 const CF_BOOL flag);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif // #ifndef __CF_LOG_H__
Note: See TracBrowser for help on using the repository browser.