Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
el::base::TypedConfigurations Class Reference

Configurations with data types. More...

#include <easylogging++.h>

Inheritance diagram for el::base::TypedConfigurations:
Inheritance graph
[legend]

Public Member Functions

const Configurationsconfigurations (void) const
 
bool enabled (Level level)
 
const std::stringfilename (Level level)
 
base::type::fstream_tfileStream (Level level)
 
std::size_t logFlushThreshold (Level level)
 
const base::LogFormatlogFormat (Level level)
 
std::size_t maxLogFileSize (Level level)
 
const base::MillisecondsWidthmillisecondsWidth (Level level=Level::Global)
 
bool performanceTracking (Level level=Level::Global)
 
const base::SubsecondPrecisionsubsecondPrecision (Level level=Level::Global)
 
bool toFile (Level level)
 
bool toStandardOutput (Level level)
 
 TypedConfigurations (Configurations *configurations, base::LogStreamsReferenceMap *logStreamsReference)
 Constructor to initialize (construct) the object off el::Configurations. More...
 
 TypedConfigurations (const TypedConfigurations &other)
 
virtual ~TypedConfigurations (void)
 
- Public Member Functions inherited from el::base::threading::ThreadSafe
virtual void acquireLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 

Private Member Functions

void build (Configurations *configurations)
 
template<typename Conf_T >
Conf_T & getConfigByRef (Level level, std::unordered_map< Level, Conf_T > *confMap, const char *confName)
 
template<typename Conf_T >
Conf_T getConfigByVal (Level level, const std::unordered_map< Level, Conf_T > *confMap, const char *confName)
 
unsigned long getULong (std::string confVal)
 
void insertFile (Level level, const std::string &fullFilename)
 
std::string resolveFilename (const std::string &filename)
 
template<typename Conf_T >
void setValue (Level level, const Conf_T &value, std::unordered_map< Level, Conf_T > *confMap, bool includeGlobalLevel=true)
 
template<typename Conf_T >
Conf_T & unsafeGetConfigByRef (Level level, std::unordered_map< Level, Conf_T > *confMap, const char *confName)
 
template<typename Conf_T >
Conf_T unsafeGetConfigByVal (Level level, const std::unordered_map< Level, Conf_T > *confMap, const char *confName)
 
bool unsafeValidateFileRolling (Level level, const PreRollOutCallback &preRollOutCallback)
 
bool validateFileRolling (Level level, const PreRollOutCallback &preRollOutCallback)
 

Private Attributes

Configurationsm_configurations
 
std::unordered_map< Level, bool > m_enabledMap
 
std::unordered_map< Level, std::stringm_filenameMap
 
std::unordered_map< Level, base::FileStreamPtrm_fileStreamMap
 
std::unordered_map< Level, std::size_t > m_logFlushThresholdMap
 
std::unordered_map< Level, base::LogFormatm_logFormatMap
 
base::LogStreamsReferenceMapm_logStreamsReference
 
std::unordered_map< Level, std::size_t > m_maxLogFileSizeMap
 
std::unordered_map< Level, bool > m_performanceTrackingMap
 
std::unordered_map< Level, base::SubsecondPrecisionm_subsecondPrecisionMap
 
std::unordered_map< Level, bool > m_toFileMap
 
std::unordered_map< Level, bool > m_toStandardOutputMap
 

Friends

class el::base::DefaultLogDispatchCallback
 
class el::base::LogDispatcher
 
class el::base::MessageBuilder
 
class el::base::Writer
 
class el::Helpers
 

Additional Inherited Members

- Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 

Detailed Description

Configurations with data types.

el::Configurations have string based values. This is whats used internally in order to read correct configurations. This is to perform faster while writing logs using correct configurations.

This is thread safe and final class containing non-virtual destructor (means nothing should inherit this class)

Definition at line 1896 of file easylogging++.h.

Constructor & Destructor Documentation

el::base::TypedConfigurations::TypedConfigurations ( Configurations configurations,
base::LogStreamsReferenceMap logStreamsReference 
)

Constructor to initialize (construct) the object off el::Configurations.

Parameters
configurationsConfigurations pointer/reference to base this typed configurations off.
logStreamsReferenceUse ELPP->registeredLoggers()->logStreamsReference()

Definition at line 1634 of file easylogging++.cc.

el::base::TypedConfigurations::TypedConfigurations ( const TypedConfigurations other)

Definition at line 1641 of file easylogging++.cc.

virtual el::base::TypedConfigurations::~TypedConfigurations ( void  )
inlinevirtual

Definition at line 1905 of file easylogging++.h.

Member Function Documentation

void el::base::TypedConfigurations::build ( Configurations configurations)
private

Definition at line 1691 of file easylogging++.cc.

const Configurations* el::base::TypedConfigurations::configurations ( void  ) const
inline

Definition at line 1908 of file easylogging++.h.

bool el::base::TypedConfigurations::enabled ( Level  level)

Definition at line 1647 of file easylogging++.cc.

const std::string & el::base::TypedConfigurations::filename ( Level  level)

Definition at line 1655 of file easylogging++.cc.

base::type::fstream_t * el::base::TypedConfigurations::fileStream ( Level  level)

Definition at line 1679 of file easylogging++.cc.

template<typename Conf_T >
Conf_T& el::base::TypedConfigurations::getConfigByRef ( Level  level,
std::unordered_map< Level, Conf_T > *  confMap,
const char *  confName 
)
inlineprivate

Definition at line 1951 of file easylogging++.h.

template<typename Conf_T >
Conf_T el::base::TypedConfigurations::getConfigByVal ( Level  level,
const std::unordered_map< Level, Conf_T > *  confMap,
const char *  confName 
)
inlineprivate

Definition at line 1945 of file easylogging++.h.

unsigned long el::base::TypedConfigurations::getULong ( std::string  confVal)
private

Definition at line 1745 of file easylogging++.cc.

void el::base::TypedConfigurations::insertFile ( Level  level,
const std::string fullFilename 
)
private

Definition at line 1799 of file easylogging++.cc.

std::size_t el::base::TypedConfigurations::logFlushThreshold ( Level  level)

Definition at line 1687 of file easylogging++.cc.

const base::LogFormat & el::base::TypedConfigurations::logFormat ( Level  level)

Definition at line 1663 of file easylogging++.cc.

std::size_t el::base::TypedConfigurations::maxLogFileSize ( Level  level)

Definition at line 1683 of file easylogging++.cc.

const base::MillisecondsWidth & el::base::TypedConfigurations::millisecondsWidth ( Level  level = Level::Global)

Definition at line 1671 of file easylogging++.cc.

bool el::base::TypedConfigurations::performanceTracking ( Level  level = Level::Global)

Definition at line 1675 of file easylogging++.cc.

std::string el::base::TypedConfigurations::resolveFilename ( const std::string filename)
private

Definition at line 1760 of file easylogging++.cc.

template<typename Conf_T >
void el::base::TypedConfigurations::setValue ( Level  level,
const Conf_T &  value,
std::unordered_map< Level, Conf_T > *  confMap,
bool  includeGlobalLevel = true 
)
inlineprivate

Definition at line 1990 of file easylogging++.h.

const base::SubsecondPrecision & el::base::TypedConfigurations::subsecondPrecision ( Level  level = Level::Global)

Definition at line 1667 of file easylogging++.cc.

bool el::base::TypedConfigurations::toFile ( Level  level)

Definition at line 1651 of file easylogging++.cc.

bool el::base::TypedConfigurations::toStandardOutput ( Level  level)

Definition at line 1659 of file easylogging++.cc.

template<typename Conf_T >
Conf_T& el::base::TypedConfigurations::unsafeGetConfigByRef ( Level  level,
std::unordered_map< Level, Conf_T > *  confMap,
const char *  confName 
)
inlineprivate

Definition at line 1974 of file easylogging++.h.

template<typename Conf_T >
Conf_T el::base::TypedConfigurations::unsafeGetConfigByVal ( Level  level,
const std::unordered_map< Level, Conf_T > *  confMap,
const char *  confName 
)
inlineprivate

Definition at line 1957 of file easylogging++.h.

bool el::base::TypedConfigurations::unsafeValidateFileRolling ( Level  level,
const PreRollOutCallback preRollOutCallback 
)
private

Definition at line 1836 of file easylogging++.cc.

bool el::base::TypedConfigurations::validateFileRolling ( Level  level,
const PreRollOutCallback preRollOutCallback 
)
inlineprivate

Definition at line 2019 of file easylogging++.h.

Friends And Related Function Documentation

Definition at line 1941 of file easylogging++.h.

friend class el::base::LogDispatcher
friend

Definition at line 1942 of file easylogging++.h.

friend class el::base::MessageBuilder
friend

Definition at line 1939 of file easylogging++.h.

friend class el::base::Writer
friend

Definition at line 1940 of file easylogging++.h.

friend class el::Helpers
friend

Definition at line 1938 of file easylogging++.h.

Member Data Documentation

Configurations* el::base::TypedConfigurations::m_configurations
private

Definition at line 1925 of file easylogging++.h.

std::unordered_map<Level, bool> el::base::TypedConfigurations::m_enabledMap
private

Definition at line 1926 of file easylogging++.h.

std::unordered_map<Level, std::string> el::base::TypedConfigurations::m_filenameMap
private

Definition at line 1928 of file easylogging++.h.

std::unordered_map<Level, base::FileStreamPtr> el::base::TypedConfigurations::m_fileStreamMap
private

Definition at line 1933 of file easylogging++.h.

std::unordered_map<Level, std::size_t> el::base::TypedConfigurations::m_logFlushThresholdMap
private

Definition at line 1935 of file easylogging++.h.

std::unordered_map<Level, base::LogFormat> el::base::TypedConfigurations::m_logFormatMap
private

Definition at line 1930 of file easylogging++.h.

base::LogStreamsReferenceMap* el::base::TypedConfigurations::m_logStreamsReference
private

Definition at line 1936 of file easylogging++.h.

std::unordered_map<Level, std::size_t> el::base::TypedConfigurations::m_maxLogFileSizeMap
private

Definition at line 1934 of file easylogging++.h.

std::unordered_map<Level, bool> el::base::TypedConfigurations::m_performanceTrackingMap
private

Definition at line 1932 of file easylogging++.h.

std::unordered_map<Level, base::SubsecondPrecision> el::base::TypedConfigurations::m_subsecondPrecisionMap
private

Definition at line 1931 of file easylogging++.h.

std::unordered_map<Level, bool> el::base::TypedConfigurations::m_toFileMap
private

Definition at line 1927 of file easylogging++.h.

std::unordered_map<Level, bool> el::base::TypedConfigurations::m_toStandardOutputMap
private

Definition at line 1929 of file easylogging++.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36