Static helpers for developers.
More...
#include <easylogging++.h>
Static helpers for developers.
◆ commandLineArgs()
Returns command line arguments (pointer) provided to easylogging++.
◆ convertTemplateToStdString()
| 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.
◆ getThreadName()
| std::string el::Helpers::getThreadName |
( |
| ) |
|
|
inlinestatic |
◆ hasCustomFormatSpecifier()
| bool el::Helpers::hasCustomFormatSpecifier |
( |
const char * | formatSpecifier | ) |
|
|
inlinestatic |
Returns true if custom format specifier is installed.
◆ installCustomFormatSpecifier()
Installs user defined format specifier and handler.
◆ installLogDispatchCallback()
| bool el::Helpers::installLogDispatchCallback |
( |
const std::string & | id | ) |
|
|
inlinestatic |
Installs post log dispatch callback, this callback is triggered when log is dispatched.
◆ installPreRollOutCallback()
Installs pre rollout callback, this callback is triggered when log file is about to be rolled out (can be useful for backing up).
◆ logDispatchCallback()
| T * el::Helpers::logDispatchCallback |
( |
const std::string & | id | ) |
|
|
inlinestatic |
◆ reserveCustomFormatSpecifiers()
| void el::Helpers::reserveCustomFormatSpecifiers |
( |
std::size_t | size | ) |
|
|
inlinestatic |
Reserve space for custom format specifiers for performance.
- See also
- std::vector::reserve
◆ setArgs() [1/2]
| void el::Helpers::setArgs |
( |
int | argc, |
|
|
char ** | argv ) |
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
◆ setArgs() [2/2]
| void el::Helpers::setArgs |
( |
int | argc, |
|
|
const char ** | argv ) |
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
◆ setStorage()
◆ setThreadName()
| void el::Helpers::setThreadName |
( |
const std::string & | name | ) |
|
|
inlinestatic |
Sets thread name for current thread. Requires std::thread.
◆ storage()
- Returns
- Main storage repository
◆ uninstallCustomFormatSpecifier()
| bool el::Helpers::uninstallCustomFormatSpecifier |
( |
const char * | formatSpecifier | ) |
|
|
inlinestatic |
Uninstalls user defined format specifier and handler.
◆ uninstallLogDispatchCallback()
| void el::Helpers::uninstallLogDispatchCallback |
( |
const std::string & | id | ) |
|
|
inlinestatic |
Uninstalls log dispatch callback.
◆ uninstallPreRollOutCallback()
| void el::Helpers::uninstallPreRollOutCallback |
( |
void | | ) |
|
|
inlinestatic |
Uninstalls pre rollout callback.
◆ validateFileRolling()
| void el::Helpers::validateFileRolling |
( |
Logger * | logger, |
|
|
Level | level ) |
|
inlinestatic |
The documentation for this class was generated from the following file: