Static helpers for developers.
More...
#include <easylogging++.h>
Static helpers for developers.
Definition at line 3715 of file easylogging++.h.
◆ commandLineArgs()
Returns command line arguments (pointer) provided to easylogging++.
Definition at line 3819 of file easylogging++.h.
3820 return ELPP->commandLineArgs();
◆ convertTemplateToStdString()
template<typename T >
| static std::string el::Helpers::convertTemplateToStdString |
( |
const T & |
templ | ) |
|
|
inlinestatic |
Converts template to std::string - useful for loggable classes to log containers within log(std::ostream&) const.
Definition at line 3799 of file easylogging++.h.
3801 ELPP->registeredLoggers()->get(el::base::consts::kDefaultLoggerId);
3802 if (logger ==
nullptr) {
3805 base::MessageBuilder b;
3806 b.initialize(logger);
3809 #if defined(ELPP_UNICODE) 3813 #endif // defined(ELPP_UNICODE)
virtual void releaseLock(void) ELPP_FINAL
virtual void acquireLock(void) ELPP_FINAL
#define ELPP_LITERAL(txt)
Represents a logger holding ID and configurations we need to write logs.
◆ getThreadName()
| static std::string el::Helpers::getThreadName |
( |
| ) |
|
|
inlinestatic |
Definition at line 3737 of file easylogging++.h.
3738 return ELPP->getThreadName(base::threading::getCurrentThreadId());
◆ hasCustomFormatSpecifier()
| static bool el::Helpers::hasCustomFormatSpecifier |
( |
const char * |
formatSpecifier | ) |
|
|
inlinestatic |
Returns true if custom format specifier is installed.
Definition at line 3836 of file easylogging++.h.
3837 return ELPP->hasCustomFormatSpecifier(formatSpecifier);
◆ installCustomFormatSpecifier()
| static void el::Helpers::installCustomFormatSpecifier |
( |
const CustomFormatSpecifier & |
customFormatSpecifier | ) |
|
|
inlinestatic |
Installs user defined format specifier and handler.
Definition at line 3828 of file easylogging++.h.
3829 ELPP->installCustomFormatSpecifier(customFormatSpecifier);
◆ installLogDispatchCallback()
template<typename T >
| static bool el::Helpers::installLogDispatchCallback |
( |
const std::string & |
id | ) |
|
|
inlinestatic |
Installs post log dispatch callback, this callback is triggered when log is dispatched.
Definition at line 3769 of file easylogging++.h.
3770 return ELPP->installLogDispatchCallback<
T>(id);
◆ installPreRollOutCallback()
Installs pre rollout callback, this callback is triggered when log file is about to be rolled out (can be useful for backing up)
Definition at line 3760 of file easylogging++.h.
3761 ELPP->setPreRollOutCallback(callback);
◆ logDispatchCallback()
template<typename T >
| static T* el::Helpers::logDispatchCallback |
( |
const std::string & |
id | ) |
|
|
inlinestatic |
◆ reserveCustomFormatSpecifiers()
| static void el::Helpers::reserveCustomFormatSpecifiers |
( |
std::size_t |
size | ) |
|
|
inlinestatic |
Reserve space for custom format specifiers for performance.
- See also
- std::vector::reserve
Definition at line 3824 of file easylogging++.h.
3825 ELPP->m_customFormatSpecifiers.reserve(size);
◆ setArgs() [1/2]
| static void el::Helpers::setArgs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
Definition at line 3726 of file easylogging++.h.
3727 ELPP->setApplicationArguments(argc, argv);
◆ setArgs() [2/2]
| static void el::Helpers::setArgs |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
Definition at line 3730 of file easylogging++.h.
3731 ELPP->setApplicationArguments(argc, const_cast<char**>(argv));
◆ setStorage()
◆ setThreadName()
| static void el::Helpers::setThreadName |
( |
const std::string & |
name | ) |
|
|
inlinestatic |
Sets thread name for current thread. Requires std::thread.
Definition at line 3734 of file easylogging++.h.
◆ storage()
◆ uninstallCustomFormatSpecifier()
| static bool el::Helpers::uninstallCustomFormatSpecifier |
( |
const char * |
formatSpecifier | ) |
|
|
inlinestatic |
Uninstalls user defined format specifier and handler.
Definition at line 3832 of file easylogging++.h.
3833 return ELPP->uninstallCustomFormatSpecifier(formatSpecifier);
◆ uninstallLogDispatchCallback()
template<typename T >
| static void el::Helpers::uninstallLogDispatchCallback |
( |
const std::string & |
id | ) |
|
|
inlinestatic |
Uninstalls log dispatch callback.
Definition at line 3774 of file easylogging++.h.
3775 ELPP->uninstallLogDispatchCallback<
T>(id);
◆ uninstallPreRollOutCallback()
| static void el::Helpers::uninstallPreRollOutCallback |
( |
void |
| ) |
|
|
inlinestatic |
Uninstalls pre rollout callback.
Definition at line 3764 of file easylogging++.h.
3765 ELPP->unsetPreRollOutCallback();
◆ validateFileRolling()
| static void el::Helpers::validateFileRolling |
( |
Logger * |
logger, |
|
|
Level |
level |
|
) |
| |
|
inlinestatic |
Definition at line 3839 of file easylogging++.h.
3840 if (
ELPP ==
nullptr || logger ==
nullptr)
return;
3841 logger->m_typedConfigurations->validateFileRolling(level,
ELPP->preRollOutCallback());
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/easylogging++/easylogging++.h