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

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
28extern "C" {
29#endif
30
31CF_EXPORT int
32CF_Log_Initialize (const int logPool);
33
34CF_EXPORT int
35CF_Log_Finalize (void);
36
37CF_EXPORT int
38CF_Log_Open (const int mapid,
39 const char * path,
40 const int memsize);
41
42CF_EXPORT int
43CF_Log_Close (const int mapid);
44
45CF_EXPORT int
46CF_Log_SetMT (const int mapid,
47 const CF_BOOL flag);
48
49CF_EXPORT int
50CF_Log_Write (const int mapid,
51 const char * prefix,
52 const char * fmt, ...);
53
54CF_EXPORT int
55CF_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.