|
nCine 2025.12.r528-f126e49
A cross-platform 2D game engine
|
The interface class for loggers. More...
#include <ILogger.h>

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 unsigned int | consumeQueue ()=0 |
| Consumes the queue of entries from all threads (called by the main thread only) | |
| 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. | |
The interface class for loggers.
|
pure virtual |
Clears the entries from the log string.
Implemented in ncine::NullLogger.
|
pure virtual |
Consumes the queue of entries from all threads (called by the main thread only)
Implemented in ncine::NullLogger.
|
pure virtual |
Returns the log string with all the recorded log entries.
Implemented in ncine::NullLogger.
|
pure virtual |
Returns the capacity of the log string.
Implemented in ncine::NullLogger.
|
pure virtual |
Returns the length of the log string.
Implemented in ncine::NullLogger.
|
pure virtual |
Logs a message with a specified level of severity.
Implemented in ncine::NullLogger.