source:
libcf/trunk/include/cf_log.h@
40
Last change on this file since 40 was 40, checked in by , 11 years ago | |
---|---|
File size: 994 bytes |
Rev | Line | |
---|---|---|
[23] | 1 | /** |
[26] | 2 | * @file cf_log.h |
3 | * @author myusgun <myusgun@gmail.com> | |
4 | * @version 0.1 | |
[34] | 5 | * |
[35] | 6 | * @example log.c |
[11] | 7 | */ |
8 | #ifndef __CF_LOG_H__ | |
9 | #define __CF_LOG_H__ | |
10 | ||
11 | #include "cf_base.h" | |
12 | ||
[26] | 13 | /** |
14 | * 로그의 버퍼 크기를 기본 값으로 설정 | |
15 | * | |
[40] | 16 | * @see CF_Log_Open |
[26] | 17 | */ |
[12] | 18 | #define CF_LOG_BUFFER_DEFAULT -1 |
[26] | 19 | |
[38] | 20 | /** |
21 | * 로그 기록 시 버퍼를 사용하지 않고 즉시 기록 | |
[26] | 22 | * |
[40] | 23 | * @see CF_Log_Open |
[26] | 24 | */ |
[12] | 25 | #define CF_LOG_BUFFER_NO 0 |
[11] | 26 | |
27 | #ifdef __cplusplus | |
28 | extern "C" { | |
29 | #endif | |
30 | ||
31 | CF_EXPORT int | |
[12] | 32 | CF_Log_Initialize (const int logPool); |
[11] | 33 | |
34 | CF_EXPORT int | |
35 | CF_Log_Finalize (void); | |
36 | ||
[40] | 37 | CF_EXPORT int |
38 | CF_Log_Open (const int mapid, | |
39 | const char * path, | |
[12] | 40 | const int memsize); |
41 | ||
[11] | 42 | CF_EXPORT int |
[40] | 43 | CF_Log_Close (const int mapid); |
[19] | 44 | |
45 | CF_EXPORT int | |
[40] | 46 | CF_Log_SetMT (const int mapid, |
47 | const CF_BOOL flag); | |
[11] | 48 | |
[12] | 49 | CF_EXPORT int |
[40] | 50 | CF_Log_Write (const int mapid, |
[12] | 51 | const char * prefix, |
52 | const char * fmt, ...); | |
53 | ||
54 | CF_EXPORT int | |
[40] | 55 | CF_Log_Flush (const int mapid); |
[12] | 56 | |
[11] | 57 | #ifdef __cplusplus |
58 | } | |
59 | #endif | |
60 | ||
61 | #endif // #ifndef __CF_LOG_H__ |
Note:
See TracBrowser
for help on using the repository browser.