class
Debug
Utility class providing various debug functionality.
Public
Constructors
Debug
Debug() = default
Methods
Log
Logs a new message.
- message
- The message describing the log entry.
- verbosity
- Verbosity of the message, determining its importance.
- categoryName
- Category of the message, determining which system is it relevant to.
ClearLog
Removes all log entries for a specific category and/or verbosity level.
- categoryName
- Name of the category to clear. Specify null to clear all categories.
- verbosity
- Verbosity level to clear.
WriteAsBmp
void WriteAsBmp(u8 *rawPixels, u32 bytesPerPixel, u32 width, u32 height, const Path &filePath, bool overwrite = true) const
Converts raw pixels into a BMP image and saves it as a file
SaveLog
Saves a log about the current state of the application to the specified location.
- path
- Absolute path to the log filename.
- type
- Format of the saved log.
SaveHtmlLog
Saves a log about the current state of the application to the specified location as a HTML file.
- path
- Absolute path to the log filename.
SaveTextLog
Saves a log about the current state of the application to the specified location as a text file.
- path
- Absolute path to the log filename.
SetLogCallback
This allows setting a log callback that can override the default action in log
Fields
Internal
Methods
TriggerCallbacksInternal
void TriggerCallbacksInternal()
Triggers callbacks that notify external code that a log entry was added.