nCine 2025.06.r503-ff15d8d
A cross-platform 2D game engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ncine::NullLogger Class Reference

A fake logger which doesn't log anything. More...

#include <ILogger.h>

Inheritance diagram for ncine::NullLogger:
Inheritance graph
[legend]
Collaboration diagram for ncine::NullLogger:
Collaboration graph
[legend]

Public Member Functions

unsigned int write (LogLevel level, const char *fmt,...) override
 Logs a message with a specified level of severity.
 
const char * logString () const override
 Returns the log string with all the recorded log entries.
 
void clearLogString () override
 Clears the entries from the log string.
 
unsigned int logStringLength () const override
 Returns the length of the log string.
 
unsigned int logStringCapacity () const override
 Returns the capacity of the log string.
 

Additional Inherited Members

- Public Types inherited from ncine::ILogger
enum class  LogLevel {
  UNKNOWN = -1 , OFF = 0 , VERBOSE , DEBUG ,
  INFO , WARN , ERROR , FATAL
}
 Log levels, from less to more severe.
 

Detailed Description

A fake logger which doesn't log anything.

Member Function Documentation

◆ clearLogString()

void ncine::NullLogger::clearLogString ( )
inlineoverridevirtual

Clears the entries from the log string.

Implements ncine::ILogger.

◆ logString()

const char * ncine::NullLogger::logString ( ) const
inlineoverridevirtual

Returns the log string with all the recorded log entries.

Implements ncine::ILogger.

◆ logStringCapacity()

unsigned int ncine::NullLogger::logStringCapacity ( ) const
inlineoverridevirtual

Returns the capacity of the log string.

Implements ncine::ILogger.

◆ logStringLength()

unsigned int ncine::NullLogger::logStringLength ( ) const
inlineoverridevirtual

Returns the length of the log string.

Implements ncine::ILogger.

◆ write()

unsigned int ncine::NullLogger::write ( LogLevel  level,
const char *  fmt,
  ... 
)
inlineoverridevirtual

Logs a message with a specified level of severity.

Implements ncine::ILogger.


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