|
| | GLogger (const std::shared_ptr< GOptions > &gopts, const std::string &cname, const std::string &lname="") |
| | Constructs a GLogger instance.
|
| |
| | GLogger ()=default |
| |
| | ~GLogger () |
| |
| template<typename... Args> |
| void | debug (debug_type type, Args &&... args) const |
| | Logs a debug message if the debug level is nonzero.
|
| |
| template<typename... Args> |
| void | info (int level, Args &&... args) const |
| | Logs an info message, conditionally based on verbosity level.
|
| |
| template<typename... Args> |
| void | info (Args &&... args) const |
| | Overloaded version of info() with the default level = 0.
|
| |
| template<typename... Args> |
| void | warning (Args &&... args) const |
| | Logs a warning message.
|
| |
| template<typename... Args> |
| void | error (int exit_code, Args &&... args) const |
| | Logs an error message and exits the application.
|
| |
| template<typename... Args> |
| void | critical (Args &&... args) const |
| | Logs a critical message. Always printed.
|
| |
| std::string | get_class_name () const |
| |
GLogger manages output messages categorized as debug, info, warning, error, and critical. It allows conditional printing based on verbosity and debug flags, supports colored output, and automatically adds a counter to each message.
Definition at line 43 of file glogger.h.