Files
2022-10-26 12:25:11 +08:00

29 lines
647 B
C++

#pragma once
#include "wzLogDefine.h"
namespace WzLog
{
class WzLogHandler
{
protected:
WzLogHandler() {}; // 상속에 의한 생성만 허용 즉 인터페이스
public:
virtual ~WzLogHandler() {}
BOOL Initialize() { return OnInitialize(); }
void Release() { OnRelease(); }
virtual void WriteLog( WZLOG_TYPE level, const char* message ) {}
virtual void SetFilter( WZLOG_TYPE LogLevel, BOOL bEnable ) {}
virtual BOOL GetFilter( WZLOG_TYPE LogLevel ) { return FALSE; }
private:
virtual BOOL OnInitialize() { return FALSE; }
virtual void OnRelease() {}
};
}