Easylogging++ management storage.
More...
#include <easylogging++.h>
Easylogging++ management storage.
Definition at line 2597 of file easylogging++.h.
◆ Storage()
| el::base::Storage::Storage |
( |
const LogBuilderPtr & | defaultLogBuilder | ) |
|
|
explicit |
◆ ~Storage()
| virtual el::base::Storage::~Storage |
( |
void | | ) |
|
|
virtual |
◆ addFlag()
Definition at line 2641 of file easylogging++.h.
2641 {
2642 base::utils::addFlag(flag, &m_flags);
2643 }
◆ commandLineArgs()
◆ customFormatSpecifiers()
Definition at line 2677 of file easylogging++.h.
2677 {
2678 return &m_customFormatSpecifiers;
2679 }
◆ customFormatSpecifiersLock()
Definition at line 2681 of file easylogging++.h.
2681 {
2682 return m_customFormatSpecifiersLock;
2683 }
◆ flags()
◆ getELPP()
◆ getThreadName()
| std::string el::base::Storage::getThreadName |
( |
const std::string & | threadId | ) |
|
|
inline |
Definition at line 2729 of file easylogging++.h.
2729 {
2731 std::unordered_map<std::string, std::string>::const_iterator it = m_threadNames.find(threadId);
2732 if (it == m_threadNames.end()) {
2733 return threadId;
2734 }
2735 return it->second;
2736 }
base::threading::internal::ScopedLock< base::threading::Mutex > ScopedLock
◆ hasCustomFormatSpecifier()
| bool el::base::Storage::hasCustomFormatSpecifier |
( |
const char * | formatSpecifier | ) |
|
◆ hasFlag()
| bool el::base::Storage::hasFlag |
( |
LoggingFlag | flag | ) |
const |
|
inline |
Definition at line 2649 of file easylogging++.h.
2649 {
2650 return base::utils::hasFlag(flag, m_flags);
2651 }
◆ hitCounters()
Definition at line 2619 of file easylogging++.h.
2619 {
2620 return m_registeredHitCounters;
2621 }
◆ installCustomFormatSpecifier()
| void el::base::Storage::installCustomFormatSpecifier |
( |
const CustomFormatSpecifier & | customFormatSpecifier | ) |
|
◆ installLogDispatchCallback()
| bool el::base::Storage::installLogDispatchCallback |
( |
const std::string & | id | ) |
|
|
inline |
Definition at line 2690 of file easylogging++.h.
2690 {
2692 }
static bool installCallback(const std::string &id, std::unordered_map< std::string, TPtr > *mapT)
◆ logDispatchCallback()
| T * el::base::Storage::logDispatchCallback |
( |
const std::string & | id | ) |
|
|
inline |
Definition at line 2699 of file easylogging++.h.
2699 {
2701 }
static T * callback(const std::string &id, std::unordered_map< std::string, TPtr > *mapT)
◆ preRollOutCallback()
Definition at line 2669 of file easylogging++.h.
2669 {
2670 return m_preRollOutCallback;
2671 }
◆ registeredLoggers()
Definition at line 2623 of file easylogging++.h.
2623 {
2624 return m_registeredLoggers;
2625 }
◆ removeFlag()
Definition at line 2645 of file easylogging++.h.
2645 {
2646 base::utils::removeFlag(flag, &m_flags);
2647 }
◆ setFlags()
Definition at line 2657 of file easylogging++.h.
2657 {
2659 }
base::type::EnumType flags(void) const
◆ setLoggingLevel()
| void el::base::Storage::setLoggingLevel |
( |
Level | level | ) |
|
|
inline |
◆ setPreRollOutCallback()
Definition at line 2661 of file easylogging++.h.
2661 {
2662 m_preRollOutCallback = callback;
2663 }
◆ setThreadName()
| void el::base::Storage::setThreadName |
( |
const std::string & | name | ) |
|
|
inline |
Sets thread name for current thread. Requires std::thread.
Definition at line 2723 of file easylogging++.h.
2723 {
2724 if (
name.empty())
return;
2726 m_threadNames[base::threading::getCurrentThreadId()] =
name;
2727 }
◆ uninstallCustomFormatSpecifier()
| bool el::base::Storage::uninstallCustomFormatSpecifier |
( |
const char * | formatSpecifier | ) |
|
◆ uninstallLogDispatchCallback()
| void el::base::Storage::uninstallLogDispatchCallback |
( |
const std::string & | id | ) |
|
|
inline |
Definition at line 2695 of file easylogging++.h.
2695 {
2697 }
static void uninstallCallback(const std::string &id, std::unordered_map< std::string, TPtr > *mapT)
◆ unsetPreRollOutCallback()
| void el::base::Storage::unsetPreRollOutCallback |
( |
void | | ) |
|
|
inline |
Definition at line 2665 of file easylogging++.h.
2665 {
2666 m_preRollOutCallback = base::defaultPreRollOutCallback;
2667 }
◆ validateAfterNCounter()
| bool el::base::Storage::validateAfterNCounter |
( |
const char * | filename, |
|
|
base::type::LineNumber | lineNumber, |
|
|
std::size_t | n ) |
|
inline |
Definition at line 2611 of file easylogging++.h.
2611 {
2613 }
bool validateAfterN(const char *filename, base::type::LineNumber lineNumber, std::size_t n)
Validates counter for hits >= N, i.e, registers new if does not exist otherwise updates original one.
base::RegisteredHitCounters * hitCounters(void) const
◆ validateEveryNCounter()
| bool el::base::Storage::validateEveryNCounter |
( |
const char * | filename, |
|
|
base::type::LineNumber | lineNumber, |
|
|
std::size_t | occasion ) |
|
inline |
Definition at line 2607 of file easylogging++.h.
2607 {
2609 }
bool validateEveryN(const char *filename, base::type::LineNumber lineNumber, std::size_t n)
Validates counter for every N, i.e, registers new if does not exist otherwise updates original one.
◆ validateNTimesCounter()
| bool el::base::Storage::validateNTimesCounter |
( |
const char * | filename, |
|
|
base::type::LineNumber | lineNumber, |
|
|
std::size_t | n ) |
|
inline |
Definition at line 2615 of file easylogging++.h.
2615 {
2617 }
bool validateNTimes(const char *filename, base::type::LineNumber lineNumber, std::size_t n)
Validates counter for hits are <= n, i.e, registers new if does not exist otherwise updates original ...
◆ vRegistry()
◆ el::base::DefaultLogDispatchCallback
◆ el::base::LogDispatcher
◆ el::base::MessageBuilder
◆ el::base::PerformanceTracker
| friend class el::base::PerformanceTracker |
|
friend |
◆ el::base::Writer
◆ el::Helpers
◆ el::LogBuilder
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/easylogging++/easylogging++.h