Central logging agent.
More...
#include <qpid/log/Logger.h>
Central logging agent.
Thread safe, singleton.
The Logger provides all needed functionality for selecting and formatting logging output. The actual outputting of log records is handled by Logger::Output-derived classes instantiated by the platform's sink-related options.
Definition at line 36 of file Logger.h.
Flags indicating what to include in the log output.
| Enumerator |
|---|
| FILE |
|
| LINE |
|
| FUNCTION |
|
| LEVEL |
|
| TIME |
|
| THREAD |
|
| HIRES |
|
| CATEGORY |
|
Definition at line 39 of file Logger.h.
| qpid::log::Logger::Logger |
( |
| ) |
|
| qpid::log::Logger::~Logger |
( |
| ) |
|
| void qpid::log::Logger::clear |
( |
| ) |
|
| void qpid::log::Logger::configure |
( |
const Options & |
o | ) |
|
| void qpid::log::Logger::format |
( |
int |
formatFlags | ) |
|
Set the formatting flags, bitwise OR of FormatFlag values.
| int qpid::log::Logger::format |
( |
const Options & |
| ) |
|
Set format flags from options object.
- Returns
- computed flags.
| bool qpid::log::Logger::getHiresTimestamp |
( |
| ) |
|
Get the hires timestamp setting.
Get the options used to configure the logger.
Definition at line 96 of file Logger.h.
| static Logger& qpid::log::Logger::instance |
( |
| ) |
|
|
static |
| void qpid::log::Logger::log |
( |
const Statement & |
, |
|
|
const std::string & |
|
|
) |
| |
| void qpid::log::Logger::output |
( |
std::auto_ptr< Output > |
out | ) |
|
Add an output destination for messages.
| void qpid::log::Logger::reconfigure |
( |
const std::vector< std::string > & |
selectors | ) |
|
| void qpid::log::Logger::select |
( |
const Selector & |
s | ) |
|
Select the messages to be logged.
| void qpid::log::Logger::setHiresTimestamp |
( |
bool |
setting | ) |
|
Set the hires timestamp setting.
| void qpid::log::Logger::setPrefix |
( |
const std::string & |
prefix | ) |
|
Set a prefix for all messages.
The documentation for this class was generated from the following file: