algorithms  2.2.0
Framework-independent algorithms for the EIC
Loading...
Searching...
No Matches
algorithms::LogSvc Class Reference

#include <algorithms/logger.h>

Inheritance diagram for algorithms::LogSvc:
[legend]

Public Types

using LogAction = std::function<void(LogLevel, std::string_view, std::string_view)>
Public Types inherited from algorithms::Configurable
using PropertyMap = std::map<std::string_view, PropertyBase&>

Public Member Functions

void defaultLevel (const LogLevel l)
LogLevel defaultLevel () const
void init ()
void init (LogAction a)
void report (const LogLevel l, std::string_view caller, std::string_view msg) const
Public Member Functions inherited from algorithms::Service< LogSvc >
 Service (std::string_view name)
Public Member Functions inherited from algorithms::ServiceBase
bool ready () const
void ready (bool state)
Public Member Functions inherited from algorithms::Configurable
template<typename T>
void setProperty (std::string_view name, T &&value)
template<typename T>
T getProperty (std::string_view name) const
const PropertyMap & getProperties () const
bool hasProperty (std::string_view name) const
auto missingProperties () const
void validate () const
Public Member Functions inherited from algorithms::NameMixin
 NameMixin (std::string_view name, std::string_view description)
std::string_view name () const
std::string_view description () const

Additional Inherited Members

Static Public Member Functions inherited from algorithms::Service< LogSvc >
static LogSvc & instance ()

Detailed Description

Definition at line 59 of file logger.h.

Member Typedef Documentation

◆ LogAction

using algorithms::LogSvc::LogAction = std::function<void(LogLevel, std::string_view, std::string_view)>

Definition at line 61 of file logger.h.

Member Function Documentation

◆ defaultLevel() [1/2]

LogLevel algorithms::LogSvc::defaultLevel ( ) const
inline

Definition at line 63 of file logger.h.

◆ defaultLevel() [2/2]

void algorithms::LogSvc::defaultLevel ( const LogLevel l)
inline

Definition at line 62 of file logger.h.

◆ init() [1/2]

void algorithms::LogSvc::init ( )
inline

Definition at line 64 of file logger.h.

◆ init() [2/2]

void algorithms::LogSvc::init ( LogAction a)
inline

Definition at line 67 of file logger.h.

◆ report()

void algorithms::LogSvc::report ( const LogLevel l,
std::string_view caller,
std::string_view msg ) const
inline

Definition at line 68 of file logger.h.


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