1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __C_LOGGER_H_INCLUDED__
6
#define __C_LOGGER_H_INCLUDED__
10
#include "irrString.h"
11
#include "IEventReceiver.h"
16
//! Class for logging messages, warnings and errors to stdout
17
class CLogger : public ILogger
21
CLogger(IEventReceiver* r);
23
//! Returns the current set log level.
24
virtual ELOG_LEVEL getLogLevel() const;
26
//! Sets a new log level. virtual void setLogLevel(ELOG_LEVEL ll);
27
virtual void setLogLevel(ELOG_LEVEL ll);
29
//! Prints out a text into the log
30
virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION);
32
//! Prints out a text into the log
33
virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION);
35
//! Prints out a text into the log
36
virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION);
38
//! Prints out a text into the log
39
virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION);
41
//! Prints out a text into the log
42
virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION);
44
//! Sets a new event receiver
45
void setReceiver(IEventReceiver* r);
50
IEventReceiver* Receiver;