MySQL 8.4.2
Source Code Documentation
|
This class sets up and configures the logging infrastructure, storing the logger to be used by the application as a singleton. More...
#include <gcs_logging.h>
Static Public Member Functions | |
static enum_gcs_error | initialize (Logger_interface *logger) |
Set the logger object and initialize it by invoking its initialization method. More... | |
static Logger_interface * | get_logger () |
Get a reference to the logger object if there is any. More... | |
static enum_gcs_error | finalize () |
Free any resource used in the logging system. More... | |
Static Private Attributes | |
static Logger_interface * | m_logger = nullptr |
This class sets up and configures the logging infrastructure, storing the logger to be used by the application as a singleton.
|
static |
Free any resource used in the logging system.
GCS_OK | in case everything goes well. Any other value of gcs_error in case of error. |
|
static |
Get a reference to the logger object if there is any.
|
static |
Set the logger object and initialize it by invoking its initialization method.
This allows any resources needed by the logging system to be initialized, and ensures its usage throughout the lifecycle of the current application, i.e. GCS.
[in] | logger | logging system |
GCS_OK | in case everything goes well. Any other value of gcs_error in case of error. |
|
staticprivate |