FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
business_logic::Loggable< Clazz > Class Template Reference

Class that provides a logger for the given class; automatically deduces the logger. More...

#include <Loggable.h>

+ Inheritance diagram for business_logic::Loggable< Clazz >:
+ Collaboration diagram for business_logic::Loggable< Clazz >:

Public Member Functions

 Loggable ()
 

Protected Attributes

std::shared_ptr< spdlog::logger > logger
 

Detailed Description

template<typename Clazz>
class business_logic::Loggable< Clazz >

Class that provides a logger for the given class; automatically deduces the logger.

Class that provides a logger for the given class; automatically deduces the logger name (tag) from the given class's name. This name is demangled if GNU libstdc++ is available, otherwise a possibly-mangled fallback is used.

Template Parameters
ClazzThe given class to deduce the logger name (tag) from

Definition at line 37 of file Loggable.h.

Constructor & Destructor Documentation

◆ Loggable()

template<typename Clazz >
business_logic::Loggable< Clazz >::Loggable ( )
inline

Definition at line 39 of file Loggable.h.

References business_logic::Loggable< Clazz >::logger.

Member Data Documentation

◆ logger

template<typename Clazz >
std::shared_ptr<spdlog::logger> business_logic::Loggable< Clazz >::logger
protected

Definition at line 75 of file Loggable.h.

Referenced by business_logic::Loggable< Clazz >::Loggable().


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