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

Core class that represents a logger writing to standard output (stdout, stderr) More...

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

Public Member Functions

 StdLogger (const StdLogger &)=default
 
 StdLogger (StdLogger &&)=default
 
void EnableStdReplication (bool enable) override
 Enables replication to standard output. More...
 
bool IsStdReplicationEnabled () const override
 Gets the standard output replication status. More...
 
void Write (const String &string) override
 Writes to the console. More...
 
void WriteError (ErrorType type, const String &error, unsigned int line=0, const char *file=nullptr, const char *function=nullptr) override
 Writes an error to the console. More...
 
StdLoggeroperator= (const StdLogger &)=default
 
StdLoggeroperator= (StdLogger &&)=default
 

Detailed Description

Core class that represents a logger writing to standard output (stdout, stderr)

Member Function Documentation

◆ EnableStdReplication()

void Nz::StdLogger::EnableStdReplication ( bool  enable)
overridevirtual

Enables replication to standard output.

Does nothing, as the std logger always write to standard output

Parameters
enableUnused argument

Implements Nz::AbstractLogger.

◆ IsStdReplicationEnabled()

bool Nz::StdLogger::IsStdReplicationEnabled ( ) const
overridevirtual

Gets the standard output replication status.

Returns
Always returns true

Implements Nz::AbstractLogger.

◆ Write()

void Nz::StdLogger::Write ( const String string)
overridevirtual

Writes to the console.

Parameters
stringThe log to write to the console
See also
WriteError

Implements Nz::AbstractLogger.

◆ WriteError()

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

Writes an error to the console.

Parameters
typeThe error type
errorThe error text
lineThe line the error occurred
fileThe file the error occurred
functionThe function the error occurred
See also
Write

Reimplemented from Nz::AbstractLogger.


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