Format a LogRecord into a standard XML format.
More...
#include <src/main/decaf/util/logging/XMLFormatter.h>
Detailed Description
Format a LogRecord into a standard XML format.
TODO - Currently only outputs UTF-8 The XMLFormatter can be used with arbitrary character encodings, but it is recommended that it normally be used with UTF-8. The character encoding can be set on the output Handler.
- Since
- 1.0
Constructor & Destructor Documentation
decaf::util::logging::XMLFormatter::XMLFormatter |
( |
| ) |
|
virtual decaf::util::logging::XMLFormatter::~XMLFormatter |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual std::string decaf::util::logging::XMLFormatter::format |
( |
const LogRecord & |
record | ) |
const |
|
virtual |
virtual std::string decaf::util::logging::XMLFormatter::getHead |
( |
const Handler * |
handler | ) |
|
|
virtual |
Returns the header string for a set of log records formatted as XML strings, using the output handler's encoding if it is defined, otherwise using the default platform encoding.
- Parameters
-
handler | The output handler, may be NULL. |
- Returns
- the header string for log records formatted as XML strings.
virtual std::string decaf::util::logging::XMLFormatter::getTail |
( |
const Handler * |
handler | ) |
|
|
virtual |
Returns the tail string for a set of log records formatted as XML strings.
- Parameters
-
handler | The output handler, may be NULL. |
- Returns
- the tail string for log records formatted as XML strings.
The documentation for this class was generated from the following file: