|
GNode library (C++)
|
Manages logging functionality using the spdlog library. More...
#include <logger.hpp>
Static Public Member Functions | |
| static std::shared_ptr< spdlog::logger > & | log () |
| Retrieves the singleton instance of the logger. | |
Private Member Functions | |
| Logger ()=default | |
| Logger (const Logger &)=delete | |
| Logger & | operator= (const Logger &)=delete |
Static Private Attributes | |
| static std::shared_ptr< spdlog::logger > | instance |
Manages logging functionality using the spdlog library.
The Logger class provides a singleton instance of a logger that can be used throughout the application. It utilizes the spdlog library for logging messages to the standard output with color support.
The class is designed to be a singleton, ensuring that there is only one instance of the logger throughout the application. It provides a static method to access this instance.
|
privatedefault |
|
privatedelete |
|
static |
Retrieves the singleton instance of the logger.
This method returns the singleton logger instance. It is used to access the logger for logging messages.
|
staticprivate |