![]()  | 
  
    LogIt++
    
   | 
 
Interface for formatting log records. More...
#include <ILogFormatter.hpp>
  
Public Member Functions | |
| virtual | ~ILogFormatter ()=default | 
| virtual void | set_timestamp_offset (int64_t offset_ms)=0 | 
| Sets the timestamp offset for log formatting.   | |
| 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 18 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.
      
  | 
  pure virtual | 
Sets the timestamp offset for log formatting.
This function allows setting a timezone offset in milliseconds, which will be used for adjusting timestamps in formatted log messages.
| offset_ms | Timezone offset in milliseconds. | 
Implemented in logit::SimpleLogFormatter.