LogIt++
Loading...
Searching...
No Matches
ILogFormatter.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
3#define _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
6
8
9namespace logit {
10
17 public:
18 virtual ~ILogFormatter() = default;
19
27 virtual std::string format(const LogRecord& record) const = 0;
28 }; // ILogFormatter
29
30}; // namespace logit
31
32#endif // _LOGIT_ILOG_FORMATTER_HPP_INCLUDED
Contains the definition of the LogRecord structure for storing log data.
Interface for formatting log records.
virtual ~ILogFormatter()=default
virtual std::string format(const LogRecord &record) const =0
Formats a log record into a string.
The primary namespace for the LogIt++ library.
Stores log metadata and content.
Definition LogRecord.hpp:15