Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ILogger.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_LOGGER_HPP_INCLUDED
6#define NIRT_I_LOGGER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9
10namespace nirt
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
Interface for logging messages, warnings and errors.
Definition ILogger.hpp:39
virtual void setLogLevel(ELOG_LEVEL ll)=0
Sets a new log level.
virtual ELOG_LEVEL getLogLevel() const =0
Returns the current set log level.
virtual void log(const c8 *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
virtual ~ILogger()
Destructor.
Definition ILogger.hpp: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 void log(const c8 *text, const c8 *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
virtual void log(const wchar_t *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
char c8
8 bit character variable.
Definition irrTypes.hpp:37
ELOG_LEVEL
Definition ILogger.hpp:18
@ ELL_WARNING
Warnings that something isn't as expected and can cause oddities.
Definition ILogger.hpp:26
@ ELL_NONE
Definition ILogger.hpp:33
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.hpp:20
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.hpp:23
@ ELL_ERROR
Something did go wrong.
Definition ILogger.hpp:29

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print