ADTF File Library
Loading...
Searching...
No Matches
adtf_file::Logger Class Referenceabstract

Abstract sink for log messages produced by the adtf_file library. More...

#include <log.h>

Public Member Functions

virtual void log (std::chrono::system_clock::time_point timestamp, LogLevel log_level, std::string_view message, SourceLocation location) noexcept=0
 Emit a single log event.
 

Detailed Description

Abstract sink for log messages produced by the adtf_file library.

Implementations receive every log event and are responsible for formatting and routing it (e.g. to a terminal, file, or an application-level logger).

See also
getLogger(), getDefaultLogger(), adtfFileSetLogger()

Member Function Documentation

◆ log()

virtual void adtf_file::Logger::log ( std::chrono::system_clock::time_point timestamp,
LogLevel log_level,
std::string_view message,
SourceLocation location )
pure virtualnoexcept

Emit a single log event.

Parameters
timestampWall-clock time of the event.
log_levelSeverity of the message.
messageHuman-readable description of the event.
locationSource code location that produced the message.

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