nCine  2025.04.r498-9d36345
A cross-platform 2D game engine
Public Types | Public Member Functions | List of all members
ncine::ILogger Class Referenceabstract

The interface class for loggers. More...

#include <ILogger.h>

Inheritance diagram for ncine::ILogger:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

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

Detailed Description

The interface class for loggers.


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