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

#include <algorithms/logger.h>

Inheritance diagram for algorithms::LoggerMixin:
[legend]

Public Member Functions

 LoggerMixin (std::string_view caller, const LogLevel threshold=LogSvc::instance().defaultLevel())
 LoggerMixin (const LoggerMixin &)=delete
LoggerMixin & operator= (const LoggerMixin &)=delete
void level (const LogLevel threshold)
LogLevel level () const

Protected Member Functions

detail::LoggerStream critical () const
detail::LoggerStream error () const
detail::LoggerStream warning () const
detail::LoggerStream info () const
detail::LoggerStream debug () const
detail::LoggerStream trace () const
void critical (std::string_view msg) const
void error (std::string_view msg) const
void warning (std::string_view msg) const
void info (std::string_view msg) const
void debug (std::string_view msg) const
void trace (std::string_view msg) const
template<typename ... T>
constexpr void critical (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void error (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void warning (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void info (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void debug (fmt::format_string< T... > fmt, T &&... args) const
template<typename ... T>
constexpr void trace (fmt::format_string< T... > fmt, T &&... args) const
bool aboveCriticalThreshold () const
bool aboveErrorThreshold () const
bool aboveWarningThreshold () const
bool aboveInfoThreshold () const
bool aboveDebugThreshold () const
bool aboveTraceThreshold () const
template<class ErrorType = Error>
void raise (std::string_view msg) const
template<LogLevel l, typename ... T>
constexpr void report_fmt (fmt::format_string< T... > fmt, T &&... args) const

Static Protected Member Functions

static std::ostream & endmsg (std::ostream &os)

Detailed Description

Definition at line 178 of file logger.h.

Constructor & Destructor Documentation

◆ LoggerMixin() [1/2]

algorithms::LoggerMixin::LoggerMixin ( std::string_view caller,
const LogLevel threshold = LogSvc::instance().defaultLevel() )
inline

Definition at line 180 of file logger.h.

◆ LoggerMixin() [2/2]

algorithms::LoggerMixin::LoggerMixin ( const LoggerMixin & )
delete

Member Function Documentation

◆ aboveCriticalThreshold()

bool algorithms::LoggerMixin::aboveCriticalThreshold ( ) const
inlineprotected

Definition at line 228 of file logger.h.

◆ aboveDebugThreshold()

bool algorithms::LoggerMixin::aboveDebugThreshold ( ) const
inlineprotected

Definition at line 232 of file logger.h.

◆ aboveErrorThreshold()

bool algorithms::LoggerMixin::aboveErrorThreshold ( ) const
inlineprotected

Definition at line 229 of file logger.h.

◆ aboveInfoThreshold()

bool algorithms::LoggerMixin::aboveInfoThreshold ( ) const
inlineprotected

Definition at line 231 of file logger.h.

◆ aboveTraceThreshold()

bool algorithms::LoggerMixin::aboveTraceThreshold ( ) const
inlineprotected

Definition at line 233 of file logger.h.

◆ aboveWarningThreshold()

bool algorithms::LoggerMixin::aboveWarningThreshold ( ) const
inlineprotected

Definition at line 230 of file logger.h.

◆ critical() [1/3]

detail::LoggerStream algorithms::LoggerMixin::critical ( ) const
inlineprotected

Definition at line 195 of file logger.h.

◆ critical() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::critical ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 209 of file logger.h.

◆ critical() [3/3]

void algorithms::LoggerMixin::critical ( std::string_view msg) const
inlineprotected

Definition at line 202 of file logger.h.

◆ debug() [1/3]

detail::LoggerStream algorithms::LoggerMixin::debug ( ) const
inlineprotected

Definition at line 199 of file logger.h.

◆ debug() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::debug ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 221 of file logger.h.

◆ debug() [3/3]

void algorithms::LoggerMixin::debug ( std::string_view msg) const
inlineprotected

Definition at line 206 of file logger.h.

◆ endmsg()

std::ostream & algorithms::LoggerMixin::endmsg ( std::ostream & os)
inlinestaticprotected

Definition at line 244 of file logger.h.

◆ error() [1/3]

detail::LoggerStream algorithms::LoggerMixin::error ( ) const
inlineprotected

Definition at line 196 of file logger.h.

◆ error() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::error ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 212 of file logger.h.

◆ error() [3/3]

void algorithms::LoggerMixin::error ( std::string_view msg) const
inlineprotected

Definition at line 203 of file logger.h.

◆ info() [1/3]

detail::LoggerStream algorithms::LoggerMixin::info ( ) const
inlineprotected

Definition at line 198 of file logger.h.

◆ info() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::info ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 218 of file logger.h.

◆ info() [3/3]

void algorithms::LoggerMixin::info ( std::string_view msg) const
inlineprotected

Definition at line 205 of file logger.h.

◆ level() [1/2]

LogLevel algorithms::LoggerMixin::level ( ) const
inline

Definition at line 190 of file logger.h.

◆ level() [2/2]

void algorithms::LoggerMixin::level ( const LogLevel threshold)
inline

Definition at line 189 of file logger.h.

◆ operator=()

LoggerMixin & algorithms::LoggerMixin::operator= ( const LoggerMixin & )
delete

◆ raise()

template<class ErrorType = Error>
void algorithms::LoggerMixin::raise ( std::string_view msg) const
inlineprotected

Definition at line 238 of file logger.h.

◆ report_fmt()

template<LogLevel l, typename ... T>
void algorithms::LoggerMixin::report_fmt ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 250 of file logger.h.

◆ trace() [1/3]

detail::LoggerStream algorithms::LoggerMixin::trace ( ) const
inlineprotected

Definition at line 200 of file logger.h.

◆ trace() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::trace ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 224 of file logger.h.

◆ trace() [3/3]

void algorithms::LoggerMixin::trace ( std::string_view msg) const
inlineprotected

Definition at line 207 of file logger.h.

◆ warning() [1/3]

detail::LoggerStream algorithms::LoggerMixin::warning ( ) const
inlineprotected

Definition at line 197 of file logger.h.

◆ warning() [2/3]

template<typename ... T>
void algorithms::LoggerMixin::warning ( fmt::format_string< T... > fmt,
T &&... args ) const
inlineconstexprprotected

Definition at line 215 of file logger.h.

◆ warning() [3/3]

void algorithms::LoggerMixin::warning ( std::string_view msg) const
inlineprotected

Definition at line 204 of file logger.h.


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