#ifndef __C_LOGGER_H_INCLUDED__
#define __C_LOGGER_H_INCLUDED__
#include "ILogger.h"
#include "os.h"
#include "irrString.h"
#include "IEventReceiver.h"
namespace irr
{
class CLogger : public ILogger
{
public:
CLogger(IEventReceiver* r);
virtual ELOG_LEVEL getLogLevel() const;
virtual void setLogLevel(ELOG_LEVEL ll);
virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION);
virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION);
virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION);
virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION);
virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION);
void setReceiver(IEventReceiver* r);
private:
ELOG_LEVEL LogLevel;
IEventReceiver* Receiver;
};
}
#endif