Loading...
Searching...
No Matches
ILogger.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_LOGGER_H_INCLUDED__
#define __I_LOGGER_H_INCLUDED__
#include "IReferenceCounted.h"
namespace irr
{
enum ELOG_LEVEL
{
ELL_DEBUG,
ELL_INFORMATION,
ELL_WARNING,
ELL_ERROR,
ELL_NONE
};
class ILogger : public virtual IReferenceCounted
{
public:
virtual ~ILogger() {}
virtual ELOG_LEVEL getLogLevel() const = 0;
virtual void setLogLevel(ELOG_LEVEL ll) = 0;
virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
};
} // end namespace
#endif
IReferenceCounted.h
irr::ILogger
Interface for logging messages, warnings and errors.
Definition ILogger.h:39
irr::ILogger::setLogLevel
virtual void setLogLevel(ELOG_LEVEL ll)=0
Sets a new log level.
irr::ILogger::log
virtual void log(const wchar_t *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
irr::ILogger::log
virtual void log(const c8 *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
irr::ILogger::~ILogger
virtual ~ILogger()
Destructor.
Definition ILogger.h:43
irr::ILogger::log
virtual void log(const wchar_t *text, const wchar_t *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
irr::ILogger::getLogLevel
virtual ELOG_LEVEL getLogLevel() const =0
Returns the current set log level.
irr::ILogger::log
virtual void log(const c8 *text, const wchar_t *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
irr::ILogger::log
virtual void log(const c8 *text, const c8 *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
Prints out a text into the log.
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::c8
char c8
8 bit character variable.
Definition irrTypes.h:31
irr::ELOG_LEVEL
ELOG_LEVEL
Definition ILogger.h:18
irr::ELL_ERROR
@ ELL_ERROR
Something did go wrong.
Definition ILogger.h:29
irr::ELL_NONE
@ ELL_NONE
Definition ILogger.h:33
irr::ELL_DEBUG
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.h:20
irr::ELL_INFORMATION
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.h:23
irr::ELL_WARNING
@ ELL_WARNING
Warnings that something isn't as expected and can cause oddities.
Definition ILogger.h:26
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0