|
BioCMAMC-ST
|
Concrete class logging system through console. More...
#include <console.hpp>
Public Member Functions | |
| Console () | |
| CONSOLE. | |
| ~Console () override=default | |
| Console (const Console &)=delete | |
| Console (Console &&)=delete | |
| Console & | operator= (const Console &)=delete |
| Console & | operator= (Console &&)=delete |
| void | debug (std::string_view message) noexcept final |
| Log a debug message. | |
| void | print (std::string_view prefix, std::string_view message) noexcept final |
| Log a regular print message with a prefix. | |
| void | alert (std::string_view prefix, std::string_view message) noexcept final |
| Log an alert message with a prefix. | |
| void | error (std::string_view message, std::source_location location=std::source_location::current()) noexcept final |
| Log an error message with optional location details. | |
| void | raw_log (std::string_view message) noexcept final |
| Log a raw message with no additional formatting. | |
| void | toggle_debug () noexcept final |
| Toggle the debug logging behavior on or off. | |
| void | toggle_print () noexcept final |
| Toggle the print logging behavior on or off. | |
| void | toggle_alert () noexcept final |
| Toggle the alert logging behavior on or off. | |
| void | toggle_error () noexcept final |
| Toggle the error logging behavior on or off. | |
| void | toggle_all () noexcept final |
| Toggle all logging types on or off. | |
| Public Member Functions inherited from IO::Logger | |
| Logger ()=default | |
| Logger (const Logger &)=default | |
| Logger (Logger &&)=default | |
| Logger & | operator= (const Logger &)=default |
| Logger & | operator= (Logger &&)=default |
| virtual | ~Logger ()=default |
Private Attributes | |
| uint32_t | flags |
| std::ostream & | output |
| std::ostream & | err_output |
Concrete class logging system through console.
This class defines the interface for logging messages of various types
| IO::Console::Console | ( | ) |
CONSOLE.
|
overridedefault |
|
delete |
|
delete |
|
finalvirtualnoexcept |
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. |
Implements IO::Logger.
|
finalvirtualnoexcept |
Log a debug message.
Logs a debug message with no prefix.
| message | The message to log. |
Implements IO::Logger.
|
finalvirtualnoexcept |
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). |
Implements IO::Logger.
|
finalvirtualnoexcept |
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. |
Implements IO::Logger.
|
finalvirtualnoexcept |
Log a raw message with no additional formatting.
Logs a raw message without any prefix or other enhancements.
| message | The raw message to log. |
Implements IO::Logger.
|
finalvirtualnoexcept |
Toggle the alert logging behavior on or off.
Enables or disables the logging of alert messages.
Implements IO::Logger.
|
finalvirtualnoexcept |
Toggle all logging types on or off.
Enables or disables all types of logging at once (debug, print, alert, error).
Implements IO::Logger.
|
finalvirtualnoexcept |
Toggle the debug logging behavior on or off.
Enables or disables the logging of debug messages.
Implements IO::Logger.
|
finalvirtualnoexcept |
Toggle the error logging behavior on or off.
Enables or disables the logging of error messages.
Implements IO::Logger.
|
finalvirtualnoexcept |
Toggle the print logging behavior on or off.
Enables or disables the logging of print messages.
Implements IO::Logger.
|
private |
|
private |
|
private |