Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
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()

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
contextA unique pointer for containing a context.
loggerCallbackThe 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
contextA unique pointer for containing a context.
Returns
true if successfully removed

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