Irrlicht 3D Engine
ILogger.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_LOGGER_H_INCLUDED__
6 #define __I_LOGGER_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 
10 namespace irr
11 {
12 
18 {
21 
24 
27 
30 
34 };
35 
36 
38 class ILogger : public virtual IReferenceCounted
39 {
40 public:
41 
43  virtual ~ILogger() {}
44 
46  virtual ELOG_LEVEL getLogLevel() const = 0;
47 
49 
55  virtual void setLogLevel(ELOG_LEVEL ll) = 0;
56 
58 
64  virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
65 
67 
75  virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
76  virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
77 
79 
87  virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
88 
90 
96  virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
97 };
98 
99 } // end namespace
100 
101 #endif
102 
Something did go wrong.
Definition: ILogger.h:29
char c8
8 bit character variable.
Definition: irrTypes.h:35
virtual void setLogLevel(ELOG_LEVEL ll)=0
Sets a new log level.
virtual void log(const c8 *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
Used for printing information helpful in debugging.
Definition: ILogger.h:20
Interface for logging messages, warnings and errors.
Definition: ILogger.h:38
ELOG_LEVEL
Definition: ILogger.h:17
Warnings that something isn't as expected and can cause oddities.
Definition: ILogger.h:26
Useful information to print. For example hardware infos or something started/stopped.
Definition: ILogger.h:23
virtual ELOG_LEVEL getLogLevel() const =0
Returns the current set log level.
Base class of most objects of the Irrlicht Engine.
virtual ~ILogger()
Destructor.
Definition: ILogger.h:43