API Documentation
Public Member Functions | List of all members
nkLog::FileLogger Class Referencefinal

Default implementation of a logger outputing the logged information to a file. More...

Inheritance diagram for nkLog::FileLogger:
nkLog::Logger

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 ()
 

Detailed Description

Default implementation of a logger outputing the logged information to a file.

Constructor & Destructor Documentation

◆ FileLogger()

nkLog::FileLogger::FileLogger ( StringView  filePath)
noexcept

Constructor.

Parameters
filePathThe path of the file the logger should log into.

◆ ~FileLogger()

virtual nkLog::FileLogger::~FileLogger ( )
virtual

Destructor.

Member Function Documentation

◆ getOutputFilePath()

StringView nkLog::FileLogger::getOutputFilePath ( ) const
Returns
The current path for file being written.

◆ setOutputFilePath()

void nkLog::FileLogger::setOutputFilePath ( StringView  path)

Allows to change the output file path.

Parameters
pathThe path of the file the logger should be writing to.

◆ log()

virtual void nkLog::FileLogger::log ( StringView  message,
StringView  className 
)
overridevirtual

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