Add support for Log4j 1 configuration formats (#145)
This adds support for Log4j 1 configuration formats to the Configuration Converter API
Since Log4j Core 2 is a complete rewrite for Log4j 1, the converter:
- Needs to know exactly what configuration parameters a Log4j 1 component supports to create an equivalent Log4j Core 2 configuration.
- Introduces a pluggable `spi/v1/Log4j1ComponentParser` interface.
For each supported Log4j 1 component, an implementation of this interface must be provided and registered with `ServiceLoader`.
The following Log4j 1 components are currently supported:
- Appenders: `ConsoleAppender`, `DailyRollingFileAppender`, `FileAppender` and `RollingFileAppender`.
- Filters: `DenyAllFilter`, `LevelMatchFilter`, `LevelRangeFilter` and `StringMatchFilter`.
- Layouts: `HTMLLayout`, `PatternLayout`, `SimpleLayout`, `TTCCLayout`.
Part of apache/logging-log4j2#3220
47 files changed