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 &selector)
 Selector from string. More...
 
void enable (const std::string &enableStr)
 push option settings into runtime lookup structs More...
 
void disable (const std::string &disableStr)
 
void enable (Level level, const std::string &substring=std::string())
 Enable/disable messages with level in levels where the file name contains substring. More...
 
void disable (Level level, const std::string &substring=std::string())
 
bool isEnabled (Level level, const char *function)
 Tests to determine if function names are in enable/disable tables. More...
 
bool isDisabled (Level level, const char *function)
 
bool isEnabled (Level level, const char *function, Category category)
 Test to determine if log Statement is enabled. More...
 

Detailed Description

A selector identifies the set of log messages to enable.

Thread object unsafe, pass-by-value type.

Definition at line 51 of file Selector.h.

Constructor & Destructor Documentation

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

Empty selector selects nothing.

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

Set selector from Options.

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

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

qpid::log::Selector::Selector ( const std::string &  selector)

Selector from string.

Member Function Documentation

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

push option settings into runtime lookup structs

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

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

Empty string matches all.

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

Tests to determine if function names are in enable/disable tables.

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

Test to determine if log Statement is enabled.


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

Qpid C++ API Reference
Generated on Thu Dec 5 2013 for Qpid C++ Client API by doxygen 1.8.3.1