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
7
#include "
../Utils/LogRecord.hpp
"
8
9
namespace
logit
{
10
16
class
ILogFormatter
{
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
LogRecord.hpp
Contains the definition of the LogRecord structure for storing log data.
logit::ILogFormatter
Interface for formatting log records.
Definition
ILogFormatter.hpp:16
logit::ILogFormatter::~ILogFormatter
virtual ~ILogFormatter()=default
logit::ILogFormatter::format
virtual std::string format(const LogRecord &record) const =0
Formats a log record into a string.
logit
The primary namespace for the LogIt++ library.
logit::LogRecord
Stores log metadata and content.
Definition
LogRecord.hpp:15
include
log-it
parts
Formatter
ILogFormatter.hpp
Generated by
1.12.0