ChainCLI
A modern C++20 command-line interface library
Loading...
Searching...
No Matches
cli::logging::BasicFormatter Class Reference

Basic implementation of a log record formatter that includes timestamp, log level, and message. More...

#include <formatter.h>

Inheritance diagram for cli::logging::BasicFormatter:
cli::logging::AbstractFormatter

Public Member Functions

std::string format (const LogRecord &record) const override
 Formats a log record into a string.
 

Detailed Description

Basic implementation of a log record formatter that includes timestamp, log level, and message.

Member Function Documentation

◆ format()

inline_t std::string cli::logging::BasicFormatter::format ( const LogRecord record) const
overridevirtual

Formats a log record into a string.

Parameters
recordThe log record to format.
Returns
The formatted log record as a string.

Implements cli::logging::AbstractFormatter.


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