arsa  2.7
Public Member Functions | List of all members
irr::ILogger Class Referenceabstract

Interface for logging messages, warnings and errors. More...

#include <ILogger.h>

Inheritance diagram for irr::ILogger:
irr::IReferenceCounted

Public Member Functions

virtual ~ILogger ()
 Destructor. More...
 
virtual ELOG_LEVEL getLogLevel () const =0
 Returns the current set log level. More...
 
virtual void setLogLevel (ELOG_LEVEL ll)=0
 Sets a new log level. More...
 
virtual void log (const c8 *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
 Prints out a text into the log. More...
 
virtual void log (const c8 *text, const c8 *hint, ELOG_LEVEL ll=ELL_INFORMATION)=0
 Prints out a text into the log. More...
 
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
 Prints out a text into the log. More...
 
virtual void log (const wchar_t *text, ELOG_LEVEL ll=ELL_INFORMATION)=0
 Prints out a text into the log. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Interface for logging messages, warnings and errors.

Definition at line 38 of file ILogger.h.

Constructor & Destructor Documentation

◆ ~ILogger()

virtual irr::ILogger::~ILogger ( )
inlinevirtual

Destructor.

Definition at line 43 of file ILogger.h.

43 {}

Member Function Documentation

◆ getLogLevel()

virtual ELOG_LEVEL irr::ILogger::getLogLevel ( ) const
pure virtual

Returns the current set log level.

◆ log() [1/5]

virtual void irr::ILogger::log ( const c8 text,
ELOG_LEVEL  ll = ELL_INFORMATION 
)
pure virtual

Prints out a text into the log.

Parameters
textText to print out.
llLog level of the text. If the text is an error, set it to ELL_ERROR, if it is warning set it to ELL_WARNING, and if it is just an informational text, set it to ELL_INFORMATION. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use ELL_NONE.

◆ log() [2/5]

virtual void irr::ILogger::log ( const c8 text,
const c8 hint,
ELOG_LEVEL  ll = ELL_INFORMATION 
)
pure virtual

Prints out a text into the log.

Parameters
textText to print out.
hintAdditional info. This string is added after a " :" to the string.
llLog level of the text. If the text is an error, set it to ELL_ERROR, if it is warning set it to ELL_WARNING, and if it is just an informational text, set it to ELL_INFORMATION. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use ELL_NONE.

◆ log() [3/5]

virtual void irr::ILogger::log ( const c8 text,
const wchar_t *  hint,
ELOG_LEVEL  ll = ELL_INFORMATION 
)
pure virtual

◆ log() [4/5]

virtual void irr::ILogger::log ( const wchar_t *  text,
const wchar_t *  hint,
ELOG_LEVEL  ll = ELL_INFORMATION 
)
pure virtual

Prints out a text into the log.

Parameters
textText to print out.
hintAdditional info. This string is added after a " :" to the string.
llLog level of the text. If the text is an error, set it to ELL_ERROR, if it is warning set it to ELL_WARNING, and if it is just an informational text, set it to ELL_INFORMATION. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use ELL_NONE.

◆ log() [5/5]

virtual void irr::ILogger::log ( const wchar_t *  text,
ELOG_LEVEL  ll = ELL_INFORMATION 
)
pure virtual

Prints out a text into the log.

Parameters
textText to print out.
llLog level of the text. If the text is an error, set it to ELL_ERROR, if it is warning set it to ELL_WARNING, and if it is just an informational text, set it to ELL_INFORMATION. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use ELL_NONE.

◆ setLogLevel()

virtual void irr::ILogger::setLogLevel ( ELOG_LEVEL  ll)
pure virtual

Sets a new log level.

With this value, texts which are sent to the logger are filtered out. For example setting this value to ELL_WARNING, only warnings and errors are printed out. Setting it to ELL_INFORMATION, which is the default setting, warnings, errors and informational texts are printed out.

Parameters
llnew log level filter value.

The documentation for this class was generated from the following file: