Package org.apache.log4j.config
Class Log4j1ConfigurationConverter
- java.lang.Object
-
- org.apache.log4j.config.Log4j1ConfigurationConverter
-
public final class Log4j1ConfigurationConverter extends Object
Tool for converting a Log4j 1.x properties configuration file to Log4j 2.x XML configuration file.Run with "--help" on the command line.
Example:
java org.apache.log4j.config.Log4j1ConfigurationConverter --recurse E:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\test\resources\config-1.2\hadoop --in log4j.properties --verbose
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Log4j1ConfigurationConverter.CommandLineArguments
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
convert(InputStream input, OutputStream output)
static void
main(String[] args)
static Log4j1ConfigurationConverter
run(Log4j1ConfigurationConverter.CommandLineArguments cla)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
run
public static Log4j1ConfigurationConverter run(Log4j1ConfigurationConverter.CommandLineArguments cla)
-
convert
protected void convert(InputStream input, OutputStream output) throws IOException
- Throws:
IOException
-
-