Electroneum
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. More...
 
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 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. More...
 
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
 

Additional Inherited Members

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

Detailed Description

Represents registries for verbose logging.

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

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 ( Level  level,
const std::string &  category 
)

◆ allowed() [2/2]

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

◆ clearCategories()

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

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

2450  {
2451  base::threading::ScopedLock scopedLock(lock());
2452  m_categories.clear();
2453  m_cached_allowed_categories.clear();
2454  }
base::threading::internal::ScopedLock< base::threading::Mutex > ScopedLock
virtual base::threading::Mutex & lock(void) ELPP_FINAL
Here is the call graph for this function:

◆ clearModules()

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

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

2456  {
2457  base::threading::ScopedLock scopedLock(lock());
2458  m_modules.clear();
2459  }
base::threading::internal::ScopedLock< base::threading::Mutex > ScopedLock
virtual base::threading::Mutex & lock(void) ELPP_FINAL
Here is the call graph for this function:

◆ getCategories()

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

◆ getFilenameCommonPrefix()

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

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

2486  {
2487  return m_filenameCommonPrefix;
2488  }

◆ level()

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

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

2446  {
2447  return m_level;
2448  }

◆ modules()

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

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

2471  {
2472  return m_modules;
2473  }

◆ setCategories()

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

◆ setFilenameCommonPrefix()

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

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

2482  {
2483  m_filenameCommonPrefix = prefix;
2484  }

◆ 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.

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

2478  {
2479  return !base::utils::hasFlag(LoggingFlag::DisableVModules, *m_pFlags);
2480  }

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