Configuration for logging in Inflection.
More...
#include <LoggerConfig.hpp>
Configuration for logging in Inflection.
Definition at line 12 of file LoggerConfig.hpp.
◆ getLogLevel()
static ILogLevel inflection::util::LoggerConfig::getLogLevel |
( |
| ) |
|
|
static |
Returns the current level of logging.
◆ isDebugEnabled()
static bool inflection::util::LoggerConfig::isDebugEnabled |
( |
| ) |
|
|
static |
Is debug logging currently enabled?
◆ isErrorEnabled()
static bool inflection::util::LoggerConfig::isErrorEnabled |
( |
| ) |
|
|
static |
Is error logging currently enabled?
◆ isInfoEnabled()
static bool inflection::util::LoggerConfig::isInfoEnabled |
( |
| ) |
|
|
static |
Is info logging currently enabled?
◆ isTraceEnabled()
static bool inflection::util::LoggerConfig::isTraceEnabled |
( |
| ) |
|
|
static |
Is trace logging currently enabled?
◆ isWarnEnabled()
static bool inflection::util::LoggerConfig::isWarnEnabled |
( |
| ) |
|
|
static |
Is warn logging currently enabled?
◆ logToConsole()
static void inflection::util::LoggerConfig::logToConsole |
( |
bool |
value | ) |
|
|
static |
When true, the C++ std::clog stream will be used to log all logging information from Inflection.
◆ registerLogger()
static bool inflection::util::LoggerConfig::registerLogger |
( |
void * |
context, |
|
|
ILoggerCallback |
loggerCallback |
|
) |
| |
|
static |
Registers a callback for all logging events above the current log level.
- Parameters
-
context | A unique pointer for containing a context. |
loggerCallback | The C callback function to call |
- Returns
- true if successfully added
◆ setLogLevel()
static void inflection::util::LoggerConfig::setLogLevel |
( |
ILogLevel |
newLogLevel | ) |
|
|
static |
Sets the desired level of logging.
◆ unregisterLogger()
static bool inflection::util::LoggerConfig::unregisterLogger |
( |
void * |
context | ) |
|
|
static |
Unregisters a callback for all logging events
- Parameters
-
context | A unique pointer for containing a context. |
- Returns
- true if successfully removed
The documentation for this class was generated from the following file:
- /home/runner/work/inflection/inflection/inflection/build/inflection_headers/inflection/util/LoggerConfig.hpp