plugify 1.2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plugify::ILogger Class Referenceabstract

Interface for logging messages with different severity levels. More...

#include <logger.hpp>

Public Member Functions

virtual void Log (std::string_view message, Severity severity, std::source_location loc=std::source_location::current())=0
 Log a message with the specified severity level.
 
virtual void SetLogLevel (Severity minSeverity)=0
 Set the minimum severity level for logging messages.
 
virtual void Flush ()=0
 Flush any buffered log messages.
 

Detailed Description

Interface for logging messages with different severity levels.

Definition at line 20 of file logger.hpp.

Member Function Documentation

◆ Log()

virtual void plugify::ILogger::Log ( std::string_view  message,
Severity  severity,
std::source_location  loc = std::source_location::current() 
)
pure virtual

Log a message with the specified severity level.

Parameters
messageThe log message.
severityThe severity level of the log message.
locThe source location where the log message is generated. Defaults to the current location.

◆ SetLogLevel()

virtual void plugify::ILogger::SetLogLevel ( Severity  minSeverity)
pure virtual

Set the minimum severity level for logging messages.

Parameters
minSeverityThe minimum severity level to log.

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