Configurations with data types. More...
#include <easylogging++.h>
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 | |
Configurations * | m_configurations |
std::unordered_map< Level, bool > | m_enabledMap |
std::unordered_map< Level, std::string > | m_filenameMap |
std::unordered_map< Level, base::FileStreamPtr > | m_fileStreamMap |
std::unordered_map< Level, std::size_t > | m_logFlushThresholdMap |
std::unordered_map< Level, base::LogFormat > | m_logFormatMap |
base::LogStreamsReferenceMap * | m_logStreamsReference |
std::unordered_map< Level, std::size_t > | m_maxLogFileSizeMap |
std::unordered_map< Level, bool > | m_performanceTrackingMap |
std::unordered_map< Level, base::SubsecondPrecision > | m_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) |
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.
el::base::TypedConfigurations::TypedConfigurations | ( | Configurations * | configurations, |
base::LogStreamsReferenceMap * | logStreamsReference | ||
) |
Constructor to initialize (construct) the object off el::Configurations.
configurations | Configurations pointer/reference to base this typed configurations off. |
logStreamsReference | Use 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.
|
inlinevirtual |
Definition at line 1905 of file easylogging++.h.
|
private |
Definition at line 1691 of file easylogging++.cc.
|
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.
|
inlineprivate |
Definition at line 1951 of file easylogging++.h.
|
inlineprivate |
Definition at line 1945 of file easylogging++.h.
|
private |
Definition at line 1745 of file easylogging++.cc.
|
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.
|
private |
Definition at line 1760 of file easylogging++.cc.
|
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.
|
inlineprivate |
Definition at line 1974 of file easylogging++.h.
|
inlineprivate |
Definition at line 1957 of file easylogging++.h.
|
private |
Definition at line 1836 of file easylogging++.cc.
|
inlineprivate |
Definition at line 2019 of file easylogging++.h.
|
friend |
Definition at line 1941 of file easylogging++.h.
|
friend |
Definition at line 1942 of file easylogging++.h.
|
friend |
Definition at line 1939 of file easylogging++.h.
|
friend |
Definition at line 1940 of file easylogging++.h.
|
friend |
Definition at line 1938 of file easylogging++.h.
|
private |
Definition at line 1925 of file easylogging++.h.
|
private |
Definition at line 1926 of file easylogging++.h.
|
private |
Definition at line 1928 of file easylogging++.h.
|
private |
Definition at line 1933 of file easylogging++.h.
|
private |
Definition at line 1935 of file easylogging++.h.
|
private |
Definition at line 1930 of file easylogging++.h.
|
private |
Definition at line 1936 of file easylogging++.h.
|
private |
Definition at line 1934 of file easylogging++.h.
|
private |
Definition at line 1932 of file easylogging++.h.
|
private |
Definition at line 1931 of file easylogging++.h.
|
private |
Definition at line 1927 of file easylogging++.h.
|
private |
Definition at line 1929 of file easylogging++.h.