|
BioCMAMC-ST
|
Base class for a generic logging system. More...
#include <logger.hpp>
Public Member Functions | |
| Logger ()=default | |
| Logger (const Logger &)=default | |
| Logger (Logger &&)=default | |
| Logger & | operator= (const Logger &)=default |
| Logger & | operator= (Logger &&)=default |
| virtual | ~Logger ()=default |
| virtual void | debug (std::string_view message)=0 |
| Log a debug message. | |
| virtual void | print (std::string_view prefix, std::string_view message)=0 |
| Log a regular print message with a prefix. | |
| virtual void | alert (std::string_view prefix, std::string_view message)=0 |
| Log an alert message with a prefix. | |
| virtual void | error (std::string_view message, std::source_location location=std::source_location::current())=0 |
| Log an error message with optional location details. | |
| virtual void | raw_log (std::string_view message)=0 |
| Log a raw message with no additional formatting. | |
| virtual void | toggle_debug () noexcept=0 |
| Toggle the debug logging behavior on or off. | |
| virtual void | toggle_print () noexcept=0 |
| Toggle the print logging behavior on or off. | |
| virtual void | toggle_alert () noexcept=0 |
| Toggle the alert logging behavior on or off. | |
| virtual void | toggle_error () noexcept=0 |
| Toggle the error logging behavior on or off. | |
| virtual void | toggle_all () noexcept=0 |
| Toggle all logging types on or off. | |
Base class for a generic logging system.
This class defines the interface for logging messages of various types
|
default |
|
default |
|
default |
|
virtualdefault |
|
pure virtual |
Log an alert message with a prefix.
Logs an alert message that typically requires immediate attention.
| prefix | A string prefix to prepend to the message. |
| message | The message to log. |
Implemented in IO::Console.
|
pure virtual |
Log a debug message.
Logs a debug message with no prefix.
| message | The message to log. |
Implemented in IO::Console.
|
pure virtual |
Log an error message with optional location details.
Logs an error message, optionally including the location (file, line, function) where the error occurred.
| message | The error message to log. |
| location | The source location of the error (default: current location). |
Implemented in IO::Console.
|
pure virtual |
Log a regular print message with a prefix.
Logs a general message with the specified prefix. Typically used for general informational messages.
| prefix | A string prefix to prepend to the message. |
| message | The message to log. |
Implemented in IO::Console.
|
pure virtual |
Log a raw message with no additional formatting.
Logs a raw message without any prefix or other enhancements.
| message | The raw message to log. |
Implemented in IO::Console.
|
pure virtualnoexcept |
Toggle the alert logging behavior on or off.
Enables or disables the logging of alert messages.
Implemented in IO::Console.
|
pure virtualnoexcept |
Toggle all logging types on or off.
Enables or disables all types of logging at once (debug, print, alert, error).
Implemented in IO::Console.
|
pure virtualnoexcept |
Toggle the debug logging behavior on or off.
Enables or disables the logging of debug messages.
Implemented in IO::Console.
|
pure virtualnoexcept |
Toggle the error logging behavior on or off.
Enables or disables the logging of error messages.
Implemented in IO::Console.
|
pure virtualnoexcept |
Toggle the print logging behavior on or off.
Enables or disables the logging of print messages.
Implemented in IO::Console.