Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::LogService Class Reference

A global logging service. More...

#include <Logger.hpp>

Static Public Member Functions

static void init (config::ClioConfigDefinition const &config)
 Global log core initialization from a Config.
 
static Logger::Pump trace (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::TRC severity.
 
static Logger::Pump debug (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::DBG severity.
 
static Logger::Pump info (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::NFO severity.
 
static Logger::Pump warn (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::WRN severity.
 
static Logger::Pump error (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::ERR severity.
 
static Logger::Pump fatal (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible General logger at Severity::FTL severity.
 
static Logger::Pump alert (SourceLocationType const &loc=CURRENT_SRC_LOCATION)
 Globally accesible Alert logger.
 

Detailed Description

A global logging service.

Used to initialize and setup the logging core as well as a globally available entrypoint for logging into the General channel as well as raising alerts.

Member Function Documentation

◆ alert()

static Logger::Pump util::LogService::alert ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible Alert logger.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ debug()

static Logger::Pump util::LogService::debug ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::DBG severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ error()

static Logger::Pump util::LogService::error ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::ERR severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ fatal()

static Logger::Pump util::LogService::fatal ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::FTL severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ info()

static Logger::Pump util::LogService::info ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::NFO severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ init()

void util::LogService::init ( config::ClioConfigDefinition const & config)
static

Global log core initialization from a Config.

Parameters
configThe configuration to use

◆ trace()

static Logger::Pump util::LogService::trace ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::TRC severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

◆ warn()

static Logger::Pump util::LogService::warn ( SourceLocationType const & loc = CURRENT_SRC_LOCATION)
inlinestaticnodiscard

Globally accesible General logger at Severity::WRN severity.

Parameters
locThe source location of the log message
Returns
The pump to use for logging

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