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

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

#1 fix and arrange doxygen configuration file and doxygen comments

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