Logger class for writing debug information to files.
More...
#include <Logging.hpp>
|
| | 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.
|
| |
Logger class for writing debug information to files.
◆ Logger()
| Logger::Logger |
( |
const char * | file | ) |
|
Initialize the logger.
- Parameters
-
◆ Log()
| bool Logger::Log |
( |
char | data[] | ) |
|
Log data with automatic file management.
- Parameters
-
- 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
-
- Returns
- true if writing was successful
- Note
- Use with OpenFile() and CloseFile()
The documentation for this class was generated from the following files: