Inflection
Morphology Inflection
Loading...
Searching...
No Matches
inflection::util::LoggerConfig Class Referencefinal

Configuration for logging in Inflection. More...

#include <LoggerConfig.hpp>

Static Public Member Functions

static bool isTraceEnabled ()
static bool isDebugEnabled ()
static bool isInfoEnabled ()
static bool isWarnEnabled ()
static bool isErrorEnabled ()
static void setLogLevel (ILogLevel newLogLevel)
static ILogLevel getLogLevel ()
static void logToConsole (bool value)
static bool registerLogger (void *context, ILoggerCallback loggerCallback)
static bool unregisterLogger (void *context)

Detailed Description

Configuration for logging in Inflection.

Definition at line 12 of file LoggerConfig.hpp.

Member Function Documentation

◆ getLogLevel()

ILogLevel inflection::util::LoggerConfig::getLogLevel ( )
static

Returns the current level of logging.

◆ isDebugEnabled()

bool inflection::util::LoggerConfig::isDebugEnabled ( )
static

Is debug logging currently enabled?

◆ isErrorEnabled()

bool inflection::util::LoggerConfig::isErrorEnabled ( )
static

Is error logging currently enabled?

◆ isInfoEnabled()

bool inflection::util::LoggerConfig::isInfoEnabled ( )
static

Is info logging currently enabled?

◆ isTraceEnabled()

bool inflection::util::LoggerConfig::isTraceEnabled ( )
static

Is trace logging currently enabled?

◆ isWarnEnabled()

bool inflection::util::LoggerConfig::isWarnEnabled ( )
static

Is warn logging currently enabled?

◆ logToConsole()

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()

bool inflection::util::LoggerConfig::registerLogger ( void * context,
ILoggerCallback loggerCallback )
static

Registers a callback for all logging events above the current log level.

Parameters
contextA unique pointer for containing a context.
loggerCallbackThe C callback function to call
Returns
true if successfully added

◆ setLogLevel()

void inflection::util::LoggerConfig::setLogLevel ( ILogLevel newLogLevel)
static

Sets the desired level of logging.

◆ unregisterLogger()

bool inflection::util::LoggerConfig::unregisterLogger ( void * context)
static

Unregisters a callback for all logging events

Parameters
contextA unique pointer for containing a context.
Returns
true if successfully removed

The documentation for this class was generated from the following file: