Static Public Member Functions | List of all members
el::Helpers Class Reference

Static helpers for developers. More...

#include <easylogging++.h>

Inheritance diagram for el::Helpers:
Inheritance graph
[legend]

Static Public Member Functions

static const el::base::utils::CommandLineArgscommandLineArgs (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)
 

Detailed Description

Static helpers for developers.

Definition at line 3687 of file easylogging++.h.

Member Function Documentation

static const el::base::utils::CommandLineArgs* el::Helpers::commandLineArgs ( void  )
inlinestatic

Returns command line arguments (pointer) provided to easylogging++.

Definition at line 3791 of file easylogging++.h.

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 3771 of file easylogging++.h.

static std::string el::Helpers::getThreadName ( )
inlinestatic

Definition at line 3709 of file easylogging++.h.

static bool el::Helpers::hasCustomFormatSpecifier ( const char *  formatSpecifier)
inlinestatic

Returns true if custom format specifier is installed.

Definition at line 3808 of file easylogging++.h.

static void el::Helpers::installCustomFormatSpecifier ( const CustomFormatSpecifier customFormatSpecifier)
inlinestatic

Installs user defined format specifier and handler.

Definition at line 3800 of file easylogging++.h.

template<typename T >
el::Helpers::installLogDispatchCallback< default_dispatcher > ( const std::string id)
inlinestatic

Installs post log dispatch callback, this callback is triggered when log is dispatched.

Definition at line 3741 of file easylogging++.h.

static void el::Helpers::installPreRollOutCallback ( const PreRollOutCallback callback)
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.

template<typename T >
static T* el::Helpers::logDispatchCallback ( const std::string id)
inlinestatic

Definition at line 3750 of file easylogging++.h.

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 3796 of file easylogging++.h.

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 3698 of file easylogging++.h.

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 3702 of file easylogging++.h.

static void el::Helpers::setStorage ( base::type::StoragePointer  storage)
inlinestatic

Shares logging repository (base::Storage)

Definition at line 3690 of file easylogging++.h.

static void el::Helpers::setThreadName ( const std::string name)
inlinestatic

Sets thread name for current thread. Requires std::thread.

Definition at line 3706 of file easylogging++.h.

static base::type::StoragePointer el::Helpers::storage ( )
inlinestatic
Returns
Main storage repository

Definition at line 3694 of file easylogging++.h.

static bool el::Helpers::uninstallCustomFormatSpecifier ( const char *  formatSpecifier)
inlinestatic

Uninstalls user defined format specifier and handler.

Definition at line 3804 of file easylogging++.h.

template<typename T >
static void el::Helpers::uninstallLogDispatchCallback ( const std::string id)
inlinestatic

Uninstalls log dispatch callback.

Definition at line 3746 of file easylogging++.h.

static void el::Helpers::uninstallPreRollOutCallback ( void  )
inlinestatic

Uninstalls pre rollout callback.

Definition at line 3736 of file easylogging++.h.

static void el::Helpers::validateFileRolling ( Logger logger,
Level  level 
)
inlinestatic

Definition at line 3811 of file easylogging++.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36