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