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