FLImaging 7.4.28.2
Log.h
1#pragma once
2
10
11#include "FLBase.h"
12
14namespace FLImaging
15{
17 namespace Base
18 {
19 class CInternalLog;
27 typedef void(__stdcall* CLogCallbackProcType)(const wchar_t*, CFLBase*);
28
35 class FL_EXPORT CLog : public CFLBase
36 {
37 protected:
46
47 public:
55 virtual ~CLog();
56
68 static const CResult Initialize();
69
79 static bool IsInitialized();
80
92 static const CResult Terminate();
93
109 static const CResult __stdcall Write(const char* pszFormat, ...);
110
128 static const CResult __stdcall Write(const CFLBase* pFLBase, const char* pszFormat, ...);
129
145 static const CResult __stdcall Write(const wchar_t* pWcsFormat, ...);
146
164 static const CResult __stdcall Write(const CFLBase* pFLBase, const wchar_t* pWcsFormat, ...);
165
183 static const CResult __stdcall WriteWithColor(uint32_t u32Color, const char* pszFormat, ...);
184
202 static const CResult __stdcall WriteWithColor(uint32_t u32Color, const wchar_t* pWcsFormat, ...);
203
204
222 static const CResult __stdcall WriteByCategory(const char* pszCategory, const char* pszFormat, ...);
223
241 static const CResult __stdcall WriteByCategory(const wchar_t* pWcsCategory, const wchar_t* pWcsFormat, ...);
242
243
263 static const CResult __stdcall WriteWithColorByCategory(const char* pszCategory, uint32_t u32Color, const char* pszFormat, ...);
264
284 static const CResult __stdcall WriteWithColorByCategory(const wchar_t* pWcsCategory, uint32_t u32Color, const wchar_t* pWcsFormat, ...);
285
286
298 static const CResult SetLogBufferSize(int64_t i64BufferSize = 65536);
299
300
310 static int64_t GetLogBufferSize();
311
312
322 static void SetLogPath(const wchar_t* pWcsLogPath = nullptr);
323
324
334 static const wchar_t* GetLogPathName();
335
345 static const wchar_t* GetLogFileName();
346
356 static const wchar_t* GetLogFileNameWithPath();
357
373 static void SetLogCallback(CLogCallbackProcType pCallback, CFLBase* pReceiver);
374
385
398
399 DeclareGetClassType();
400
401 private:
402 static CLog* GetInstance();
403
404 CInternalLog* m_pInternal;
405 };
406 }
407}
408
FLImaging의 최상위 기저 클래스
Definition FLBase.h:36
CFLBase()
기본 생성자
static const wchar_t * GetLogFileName()
로그 저장 파일명을 얻음
static CFLBase * GetReceiver()
로그 콜백 수신 객체 포인터를 반환
static const CResult __stdcall Write(const CFLBase *pFLBase, const char *pszFormat,...)
로그 기록
static const CResult __stdcall WriteWithColor(uint32_t u32Color, const wchar_t *pWcsFormat,...)
지정된 색상으로 로그 기록
virtual ~CLog()
소멸자
static bool IsInitialized()
초기화 상태 유무를 얻음
static const wchar_t * GetLogFileNameWithPath()
경로를 포함한 로그 저장 파일명을 얻음
static const CResult __stdcall Write(const wchar_t *pWcsFormat,...)
로그 기록
static const CResult __stdcall WriteWithColor(uint32_t u32Color, const char *pszFormat,...)
지정된 색상으로 로그 기록
static const CResult __stdcall Write(const char *pszFormat,...)
로그 기록
static const CResult __stdcall Write(const CFLBase *pFLBase, const wchar_t *pWcsFormat,...)
로그 기록
static int64_t GetLogBufferSize()
로그 기록 시 생성할 버퍼의 크기 얻기
static const CResult Initialize()
초기화
static CLogCallbackProcType GetLogCallback()
로그 콜백을 설정
static const CResult __stdcall WriteByCategory(const wchar_t *pWcsCategory, const wchar_t *pWcsFormat,...)
카테고리를 지정해서 로그 기록
static const CResult __stdcall WriteWithColorByCategory(const char *pszCategory, uint32_t u32Color, const char *pszFormat,...)
지정된 색상과 카테고리로 로그 기록
static const CResult Terminate()
초기화 해제. 해당 함수를 명시적으로 호출한 이후에는 로그 기록 함수에서 묵시적 초기화를 수행하지 않음
static const wchar_t * GetLogPathName()
로그 저장 경로를 얻음
static void SetLogCallback(CLogCallbackProcType pCallback, CFLBase *pReceiver)
로그 콜백을 설정
static void SetLogPath(const wchar_t *pWcsLogPath=nullptr)
로그 저장 경로 지정
static const CResult SetLogBufferSize(int64_t i64BufferSize=65536)
로그 기록 시 생성할 버퍼의 크기 설정
static const CResult __stdcall WriteWithColorByCategory(const wchar_t *pWcsCategory, uint32_t u32Color, const wchar_t *pWcsFormat,...)
지정된 색상과 카테고리로 로그 기록
static const CResult __stdcall WriteByCategory(const char *pszCategory, const char *pszFormat,...)
카테고리를 지정해서 로그 기록
FLImaging 모듈의 수행 결과 객체
Definition ResultsDef.h:1676
Definition AESCryptography.h:18
void(__stdcall * CLogCallbackProcType)(const wchar_t *, CFLBase *)
로그 콜백 프로시져 타입
Definition Log.h:27