CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
Debug::Logger Class Reference

Logger class for writing debug information to files. More...

#include <Logging.hpp>

Public Member Functions

 Logger (const char *file)
 Initialize the logger.
 
bool Log (char data[])
 Log data with automatic file management.
 
bool LogUnmanaged (char data[])
 Log data without automatic file management. You will have to handle the file opening and closing manually with OpenFile() and CloseFile() methods but it's faster than Log() method.
 
void OpenFile ()
 Open the log file for unmanaged log.
 
void CloseFile ()
 Close the log file after unmanaged log.
 
 ~Logger ()
 Clean up logger resources.
 

Detailed Description

Logger class for writing debug information to files.

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( const char * file)

Initialize the logger.

Parameters
filePath to the log file

Member Function Documentation

◆ Log()

bool Logger::Log ( char data[])

Log data with automatic file management.

Parameters
dataData to write to log
Returns
true if writing was successful

◆ LogUnmanaged()

bool Logger::LogUnmanaged ( char data[])

Log data without automatic file management. You will have to handle the file opening and closing manually with OpenFile() and CloseFile() methods but it's faster than Log() method.

Parameters
dataData to write to log
Returns
true if writing was successful
Note
Use with OpenFile() and CloseFile()

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