Monero
Loading...
Searching...
No Matches
el::base::VRegistry Class Reference

Represents registries for verbose logging. More...

#include <easylogging++.h>

Inheritance diagram for el::base::VRegistry:
Collaboration diagram for el::base::VRegistry:

Public Member Functions

 VRegistry (base::type::VerboseLevel level, base::type::EnumType *pFlags)
void setLevel (base::type::VerboseLevel level)
 Sets verbose level. Accepted range is 0-9.
base::type::VerboseLevel level (void) const
void clearCategories (void)
void clearModules (void)
void setCategories (const char *categories, bool clear=true)
std::string getCategories ()
void setModules (const char *modules)
bool priority_allowed (int priority, const std::string &category)
bool allowed (Level level, const std::string &category)
bool allowed (base::type::VerboseLevel vlevel, const char *file)
const std::unordered_map< std::string, base::type::VerboseLevel > & modules (void) const
void setFromArgs (const base::utils::CommandLineArgs *commandLineArgs)
bool vModulesEnabled (void)
 Whether or not vModules enabled.
void setFilenameCommonPrefix (const std::string &prefix)
const std::string & getFilenameCommonPrefix () const
Public Member Functions inherited from el::base::threading::ThreadSafe
virtual void acquireLock (void) ELPP_FINAL
virtual void releaseLock (void) ELPP_FINAL
virtual base::threading::Mutexlock (void) ELPP_FINAL

Private Attributes

base::type::VerboseLevel m_level
base::type::EnumTypem_pFlags
std::unordered_map< std::string, base::type::VerboseLevelm_modules
std::vector< std::pair< std::string, Level > > m_categories
std::map< std::string, int > m_cached_allowed_categories
std::string m_categoriesString
std::string m_filenameCommonPrefix

Additional Inherited Members

Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
virtual ~ThreadSafe (void)
Private Member Functions inherited from el::base::NoCopy
 NoCopy (void)

Detailed Description

Represents registries for verbose logging.

Constructor & Destructor Documentation

◆ VRegistry()

el::base::VRegistry::VRegistry ( base::type::VerboseLevel level,
base::type::EnumType * pFlags )
explicit

Member Function Documentation

◆ allowed() [1/2]

bool el::base::VRegistry::allowed ( base::type::VerboseLevel vlevel,
const char * file )

◆ allowed() [2/2]

bool el::base::VRegistry::allowed ( Level level,
const std::string & category )

◆ clearCategories()

void el::base::VRegistry::clearCategories ( void )

◆ clearModules()

void el::base::VRegistry::clearModules ( void )
inline

◆ getCategories()

std::string el::base::VRegistry::getCategories ( )

◆ getFilenameCommonPrefix()

const std::string & el::base::VRegistry::getFilenameCommonPrefix ( ) const
inline

◆ level()

base::type::VerboseLevel el::base::VRegistry::level ( void ) const
inline

◆ modules()

const std::unordered_map< std::string, base::type::VerboseLevel > & el::base::VRegistry::modules ( void ) const
inline

◆ priority_allowed()

bool el::base::VRegistry::priority_allowed ( int priority,
const std::string & category )

◆ setCategories()

void el::base::VRegistry::setCategories ( const char * categories,
bool clear = true )

◆ setFilenameCommonPrefix()

void el::base::VRegistry::setFilenameCommonPrefix ( const std::string & prefix)
inline

◆ setFromArgs()

void el::base::VRegistry::setFromArgs ( const base::utils::CommandLineArgs * commandLineArgs)

◆ setLevel()

void el::base::VRegistry::setLevel ( base::type::VerboseLevel level)

Sets verbose level. Accepted range is 0-9.

◆ setModules()

void el::base::VRegistry::setModules ( const char * modules)

◆ vModulesEnabled()

bool el::base::VRegistry::vModulesEnabled ( void )
inline

Whether or not vModules enabled.

Member Data Documentation

◆ m_cached_allowed_categories

std::map<std::string, int> el::base::VRegistry::m_cached_allowed_categories
private

◆ m_categories

std::vector<std::pair<std::string, Level> > el::base::VRegistry::m_categories
private

◆ m_categoriesString

std::string el::base::VRegistry::m_categoriesString
private

◆ m_filenameCommonPrefix

std::string el::base::VRegistry::m_filenameCommonPrefix
private

◆ m_level

base::type::VerboseLevel el::base::VRegistry::m_level
private

◆ m_modules

std::unordered_map<std::string, base::type::VerboseLevel> el::base::VRegistry::m_modules
private

◆ m_pFlags

base::type::EnumType* el::base::VRegistry::m_pFlags
private

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