Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::AbstractLogger Class Referenceabstract

Core class that represents the behaviour of the log classes. More...

Inheritance diagram for Nz::AbstractLogger:
Nz::FileLogger Nz::StdLogger

Public Member Functions

virtual void EnableStdReplication (bool enable)=0
 
virtual bool IsStdReplicationEnabled () const =0
 
virtual void Write (const String &string)=0
 
virtual void WriteError (ErrorType type, const String &error, unsigned int line=0, const char *file=nullptr, const char *function=nullptr)
 Writes the error in StringStream. More...
 

Detailed Description

Core class that represents the behaviour of the log classes.

Remarks
This class is abstract

Member Function Documentation

◆ WriteError()

void Nz::AbstractLogger::WriteError ( ErrorType  type,
const String error,
unsigned int  line = 0,
const char *  file = nullptr,
const char *  function = nullptr 
)
virtual

Writes the error in StringStream.

Parameters
typeEnumeration of type ErrorType
errorString describing the error
lineLine number in the file
fileFilename
functionName of the function throwing the error

Reimplemented in Nz::FileLogger, and Nz::StdLogger.


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