LogIt++
|
Interface for formatting log records. More...
#include <ILogFormatter.hpp>
Public Member Functions | |
virtual | ~ILogFormatter ()=default |
virtual std::string | format (const LogRecord &record) const =0 |
Formats a log record into a string. | |
Interface for formatting log records.
The ILogFormatter
class defines an interface that any log formatter must implement. It provides a pure virtual function for formatting a log record into a string.
Definition at line 16 of file ILogFormatter.hpp.
|
virtualdefault |
|
pure virtual |
Formats a log record into a string.
This pure virtual function must be implemented by any class deriving from ILogFormatter
. The implementation should format the log record into a human-readable or machine-readable string.
record | The log record to be formatted. |
Implemented in logit::SimpleLogFormatter.