Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions | List of all members
qpid::log::Selector Class Reference

A selector identifies the set of log messages to enable. More...

#include <qpid/log/Selector.h>

Public Member Functions

 Selector ()
 Empty selector selects nothing. More...
 
 Selector (const Options &)
 Set selector from Options. More...
 
 Selector (Level l, const std::string &s=std::string())
 Equavlient to: Selector s; s.enable(l, s) More...
 
 Selector (const std::string &enableStr)
 
void enable (Level level, const std::string &substring=std::string())
 Enable messages with level in levels where the file name contains substring. More...
 
void enable (Level level, Category category)
 Enable messages at this level for this category. More...
 
void enable (const std::string &enableStr)
 Enable based on a 'level[+]:file' string. More...
 
bool isEnabled (Level level, const char *function)
 True if level is enabled for file. More...
 
bool isEnabled (Level level, const char *function, Category category)
 
void reset ()
 Reset the category enable flags. More...
 

Detailed Description

A selector identifies the set of log messages to enable.

Thread object unsafe, pass-by-value type.

Definition at line 35 of file Selector.h.

Constructor & Destructor Documentation

qpid::log::Selector::Selector ( )
inline

Empty selector selects nothing.

Definition at line 38 of file Selector.h.

References reset().

qpid::log::Selector::Selector ( const Options )

Set selector from Options.

qpid::log::Selector::Selector ( Level  l,
const std::string &  s = std::string() 
)
inline

Equavlient to: Selector s; s.enable(l, s)

Definition at line 46 of file Selector.h.

References enable(), and reset().

qpid::log::Selector::Selector ( const std::string &  enableStr)
inline

Definition at line 51 of file Selector.h.

References enable(), and reset().

Member Function Documentation

void qpid::log::Selector::enable ( Level  level,
const std::string &  substring = std::string() 
)
inline

Enable messages with level in levels where the file name contains substring.

Empty string matches all.

Definition at line 60 of file Selector.h.

Referenced by Selector().

void qpid::log::Selector::enable ( Level  level,
Category  category 
)
inline

Enable messages at this level for this category.

Definition at line 67 of file Selector.h.

void qpid::log::Selector::enable ( const std::string &  enableStr)

Enable based on a 'level[+]:file' string.

bool qpid::log::Selector::isEnabled ( Level  level,
const char *  function 
)

True if level is enabled for file.

bool qpid::log::Selector::isEnabled ( Level  level,
const char *  function,
Category  category 
)
void qpid::log::Selector::reset ( )
inline

Reset the category enable flags.

Definition at line 79 of file Selector.h.

References qpid::log::LevelTraits::COUNT, and qpid::log::CategoryTraits::COUNT.

Referenced by Selector().


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

Qpid C++ API Reference
Generated on Tue Mar 26 2013 for Qpid C++ Client API by doxygen 1.8.3.1