NameAbbreviator generates abbreviated logger and class names.
More...
#include <nameabbreviator.h>
NameAbbreviator generates abbreviated logger and class names.
◆ NameAbbreviator()
log4cxx::pattern::NameAbbreviator::NameAbbreviator |
( |
| ) |
|
|
protected |
◆ ~NameAbbreviator()
virtual log4cxx::pattern::NameAbbreviator::~NameAbbreviator |
( |
| ) |
|
|
virtual |
◆ abbreviate()
virtual void log4cxx::pattern::NameAbbreviator::abbreviate |
( |
LogString::size_type |
nameStart, |
|
|
LogString & |
buf |
|
) |
| const |
|
pure virtual |
Abbreviates a name in a StringBuffer.
- Parameters
-
nameStart | starting position of name in buf. |
buf | buffer, may not be null. |
◆ getAbbreviator()
static NameAbbreviatorPtr log4cxx::pattern::NameAbbreviator::getAbbreviator |
( |
const LogString & |
pattern | ) |
|
|
static |
Gets an abbreviator.
For example, "%logger{2}" will output only 2 elements of the logger name, "%logger{1.}" will output only the first character of the non-final elements in the name, "logger(1~.2~} will output the first character of the first element, two characters of the second and subsequent elements and will use a tilde to indicate abbreviated characters.
- Parameters
-
pattern | abbreviation pattern. |
- Returns
- abbreviator, will not be null.
◆ getDefaultAbbreviator()
static NameAbbreviatorPtr log4cxx::pattern::NameAbbreviator::getDefaultAbbreviator |
( |
| ) |
|
|
static |
Gets default abbreviator.
- Returns
- default abbreviator.
The documentation for this class was generated from the following file: