Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
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
10namespace irr
11{
12
35
36
38class ILogger : public virtual IReferenceCounted
39{
40public:
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
Interface for logging messages, warnings and errors.
Definition ILogger.h:39
virtual void setLogLevel(ELOG_LEVEL ll)=0
Sets a new log level.
virtual void log(const wchar_t *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
virtual void log(const c8 *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
virtual ~ILogger()
Destructor.
Definition ILogger.h:43
virtual void log(const wchar_t *text, const wchar_t *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
virtual ELOG_LEVEL getLogLevel() const =0
Returns the current set log level.
virtual void log(const c8 *text, const wchar_t *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
virtual void log(const c8 *text, const c8 *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
Base class of most objects of the Irrlicht Engine.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
char c8
8 bit character variable.
Definition irrTypes.h:31
ELOG_LEVEL
Definition ILogger.h:18
@ ELL_ERROR
Something did go wrong.
Definition ILogger.h:29
@ ELL_NONE
Definition ILogger.h:33
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.h:20
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.h:23
@ ELL_WARNING
Warnings that something isn't as expected and can cause oddities.
Definition ILogger.h:26