Static helpers for developers. More...
#include <easylogging++.h>
Static Public Member Functions | |
static const el::base::utils::CommandLineArgs * | commandLineArgs (void) |
Returns command line arguments (pointer) provided to easylogging++. More... | |
template<typename T > | |
static std::string | convertTemplateToStdString (const T &templ) |
Converts template to std::string - useful for loggable classes to log containers within log(std::ostream&) const. More... | |
static std::string | getThreadName () |
static bool | hasCustomFormatSpecifier (const char *formatSpecifier) |
Returns true if custom format specifier is installed. More... | |
static void | installCustomFormatSpecifier (const CustomFormatSpecifier &customFormatSpecifier) |
Installs user defined format specifier and handler. More... | |
template<typename T > | |
static bool | installLogDispatchCallback (const std::string &id) |
Installs post log dispatch callback, this callback is triggered when log is dispatched. More... | |
static void | installPreRollOutCallback (const PreRollOutCallback &callback) |
Installs pre rollout callback, this callback is triggered when log file is about to be rolled out (can be useful for backing up) More... | |
template<typename T > | |
static T * | logDispatchCallback (const std::string &id) |
static void | reserveCustomFormatSpecifiers (std::size_t size) |
Reserve space for custom format specifiers for performance. More... | |
static void | setArgs (int argc, char **argv) |
Sets application arguments and figures out whats active for logging and whats not. More... | |
static void | setArgs (int argc, const char **argv) |
Sets application arguments and figures out whats active for logging and whats not. More... | |
static void | setStorage (base::type::StoragePointer storage) |
Shares logging repository (base::Storage) More... | |
static void | setThreadName (const std::string &name) |
Sets thread name for current thread. Requires std::thread. More... | |
static base::type::StoragePointer | storage () |
static bool | uninstallCustomFormatSpecifier (const char *formatSpecifier) |
Uninstalls user defined format specifier and handler. More... | |
template<typename T > | |
static void | uninstallLogDispatchCallback (const std::string &id) |
Uninstalls log dispatch callback. More... | |
static void | uninstallPreRollOutCallback (void) |
Uninstalls pre rollout callback. More... | |
static void | validateFileRolling (Logger *logger, Level level) |
Static helpers for developers.
Definition at line 3687 of file easylogging++.h.
|
inlinestatic |
Returns command line arguments (pointer) provided to easylogging++.
Definition at line 3791 of file easylogging++.h.
|
inlinestatic |
Converts template to std::string - useful for loggable classes to log containers within log(std::ostream&) const.
Definition at line 3771 of file easylogging++.h.
|
inlinestatic |
Definition at line 3709 of file easylogging++.h.
|
inlinestatic |
Returns true if custom format specifier is installed.
Definition at line 3808 of file easylogging++.h.
|
inlinestatic |
Installs user defined format specifier and handler.
Definition at line 3800 of file easylogging++.h.
|
inlinestatic |
Installs post log dispatch callback, this callback is triggered when log is dispatched.
Definition at line 3741 of file easylogging++.h.
|
inlinestatic |
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 3732 of file easylogging++.h.
|
inlinestatic |
Definition at line 3750 of file easylogging++.h.
|
inlinestatic |
Reserve space for custom format specifiers for performance.
Definition at line 3796 of file easylogging++.h.
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
Definition at line 3698 of file easylogging++.h.
|
inlinestatic |
Sets application arguments and figures out whats active for logging and whats not.
Definition at line 3702 of file easylogging++.h.
|
inlinestatic |
Shares logging repository (base::Storage)
Definition at line 3690 of file easylogging++.h.
|
inlinestatic |
Sets thread name for current thread. Requires std::thread.
Definition at line 3706 of file easylogging++.h.
|
inlinestatic |
Definition at line 3694 of file easylogging++.h.
|
inlinestatic |
Uninstalls user defined format specifier and handler.
Definition at line 3804 of file easylogging++.h.
|
inlinestatic |
Uninstalls log dispatch callback.
Definition at line 3746 of file easylogging++.h.
Uninstalls pre rollout callback.
Definition at line 3736 of file easylogging++.h.
Definition at line 3811 of file easylogging++.h.