![]() |
Raven Engine v0.1
|
Handler that writes log messages to a file. More...
#include <Handler.h>
Public Member Functions | |
| FileHandler (const char *filename) | |
| Constructs a FileHandler and opens the file. | |
| void | WriteImpl (std::string_view message) |
| Writes a message to the file. | |
Handler that writes log messages to a file.
Opens the specified file in output and truncation mode. Messages are appended with newline if the file is open.
|
inlineexplicit |
Constructs a FileHandler and opens the file.
| filename | The path to the log file to write. |
|
inline |
Writes a message to the file.
| message | The formatted log message to write. |