This singleton class is used to initialize and configure the Arp logging.
More...
#include <LogManager.hpp>
This singleton class is used to initialize and configure the Arp logging.
Call CreateInstance once to initialize the log engine.
◆ LogManager()
Arp::System::Commons::Diagnostics::Logging::LogManager::LogManager |
( |
const LogSettings & |
logSettings | ) |
|
|
explicit |
Constructs an LogManager instance.
- Parameters
-
logSettings | The log settings used for initialization. |
◆ AddLogEventDelegate()
void Arp::System::Commons::Diagnostics::Logging::LogManager::AddLogEventDelegate |
( |
LogEventDelegate |
delegator | ) |
|
Subscribes a log event delegator to obtain any log events.
- Parameters
-
delegator | The delgator to invoke on each log event. |
◆ CreateInstance()
void Arp::System::Commons::Diagnostics::Logging::LogManager::CreateInstance |
( |
const LogSettings & |
logSettings | ) |
|
|
static |
Creates this singleton instance.
- Parameters
-
logSettings | The log settings used for initialization. |
◆ DisposeInstance()
void Arp::System::Commons::Diagnostics::Logging::LogManager::DisposeInstance |
( |
void |
| ) |
|
|
static |
Disposes this singleton instance.
Deletes the singleton instance pointer.
◆ GetInstance()
Gets a reference of the singleton instance.
- Returns
- The singleton instance as reference.
- Exceptions
-
Exception | If this singleton instance was not created yet. |
◆ GetRootLevel()
LogLevel Arp::System::Commons::Diagnostics::Logging::LogManager::GetRootLevel |
( |
void |
| ) |
const |
Gets the current root log level.
- Returns
- The current root log level.
◆ IsCreated()
bool Arp::System::Commons::Diagnostics::Logging::LogManager::IsCreated |
( |
void |
| ) |
|
|
static |
Determines if this singleton instance is created yet.
- Returns
true
if this singleton was created yet, otherwise false
.
◆ RemoveLogEventDelegate()
void Arp::System::Commons::Diagnostics::Logging::LogManager::RemoveLogEventDelegate |
( |
LogEventDelegate |
delegator | ) |
|
Removes a subscribed log event delegator.
- Parameters
-
delegator | The delgator to remove. |
◆ SetRootLevel()
void Arp::System::Commons::Diagnostics::Logging::LogManager::SetRootLevel |
( |
LogLevel |
value | ) |
|
Sets the root log level.
- Parameters
-
value | The new root log level. |
The documentation for this class was generated from the following files:
- Arp/System/Commons/Diagnostics/Logging/LogManager.hpp
- Arp/System/Commons/Diagnostics/Logging/LogManager.cpp