Interface for logging messages with different severity levels.
More...
#include <logger.hpp>
|
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.
|
|
Interface for logging messages with different severity levels.
Definition at line 20 of file logger.hpp.
◆ 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
-
message | The log message. |
severity | The severity level of the log message. |
loc | The 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
-
minSeverity | The minimum severity level to log. |
The documentation for this class was generated from the following file: