Default implementation of a logger outputing the logged information to a file. More...
Public Member Functions | |
FileLogger (StringView filePath) noexcept | |
virtual | ~FileLogger () |
StringView | getOutputFilePath () const |
void | setOutputFilePath (StringView path) |
virtual void | log (StringView message, StringView className) override |
Public Member Functions inherited from nkLog::Logger | |
Logger () noexcept | |
virtual | ~Logger () |
Default implementation of a logger outputing the logged information to a file.
|
noexcept |
Constructor.
filePath | The path of the file the logger should log into. |
|
virtual |
Destructor.
StringView nkLog::FileLogger::getOutputFilePath | ( | ) | const |
void nkLog::FileLogger::setOutputFilePath | ( | StringView | path | ) |
Allows to change the output file path.
path | The path of the file the logger should be writing to. |
|
overridevirtual |
See nkLog::Logger::log().
Implements nkLog::Logger.