Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::FileHandler Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ FileHandler()

Raven::FileHandler::FileHandler ( const char * filename)
inlineexplicit

Constructs a FileHandler and opens the file.

Parameters
filenameThe path to the log file to write.

Member Function Documentation

◆ WriteImpl()

void Raven::FileHandler::WriteImpl ( std::string_view message)
inline

Writes a message to the file.

Parameters
messageThe formatted log message to write.

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