Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
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... | |
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.
qpid::log::Selector::Selector | ( | ) |
Empty selector selects nothing.
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.
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.
Test to determine if log Statement is enabled.