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