Package org.apache.logging.converter.config
@NullMarked
@Export
@Version("0.3.0")
package org.apache.logging.converter.config
Simple API to convert between different logging configuration formats.
For example, to convert from the Log4j Core 2 Properties configuration format to the YAML configuration format, you can use the following code:
Path input = ...;
Path output = ...;
try (InputStream inputStream = Files.newInputStream(input);
OutputStream outputStream = Files.newOutputStream(output)) {
ConfigurationConverter converter = ConfigurationConverter.newInstance();
converter.convert(inputStream, "v2:properties", outputStream, "v2:yaml");
}
-
ClassDescriptionService class to convert between different logging configuration formats.Exception thrown by
ConfigurationConverter
, when a problem occurs during the conversion.