Most of the work of the PatternLayout class is delegated to the PatternParser class.
More...
#include <patternparser.h>
|
| static void | parse (const LogString &pattern, std::vector< PatternConverterPtr > &patternConverters, std::vector< FormattingInfoPtr > &formattingInfos, const PatternMap &rules) |
| | Parse a format specifier.
|
| static PatternConverterList | parse (const LogString &pattern, const PatternMap &rules) |
| | Convert pattern to converters using rules.
|
Most of the work of the PatternLayout class is delegated to the PatternParser class.
It is this class that parses conversion patterns and creates a chained list of PatternConverters.
◆ parse() [1/2]
| PatternConverterList log4cxx::pattern::PatternParser::parse |
( |
const LogString & | pattern, |
|
|
const PatternMap & | rules ) |
|
static |
Convert pattern to converters using rules.
- Parameters
-
| pattern | a string specifying the conversion types and their properties. |
| rules | a map of stock pattern converters keyed by name. |
◆ parse() [2/2]
| void log4cxx::pattern::PatternParser::parse |
( |
const LogString & | pattern, |
|
|
std::vector< PatternConverterPtr > & | patternConverters, |
|
|
std::vector< FormattingInfoPtr > & | formattingInfos, |
|
|
const PatternMap & | rules ) |
|
static |
Parse a format specifier.
- Deprecated
- This function is deprecated and will be removed in a future version.
- Parameters
-
| pattern | pattern to parse. |
| patternConverters | list to receive pattern converters. |
| formattingInfos | list to receive field specifiers corresponding to pattern converters. |
| rules | map of stock pattern converters keyed by format specifier. |
The documentation for this class was generated from the following file: