Package org.apache.log4j.config
Class Log4j1ConfigurationConverter
java.lang.Object
org.apache.log4j.config.Log4j1ConfigurationConverter
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Log4j1ConfigurationConverter.CommandLineArguments
private static final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
convert
(InputStream input, OutputStream output) (package private) InputStream
(package private) OutputStream
static void
private void
run()
static Log4j1ConfigurationConverter
private void
-
Field Details
-
FILE_EXT_XML
- See Also:
-
cla
-
-
Constructor Details
-
Log4j1ConfigurationConverter
-
-
Method Details
-
main
-
run
public static Log4j1ConfigurationConverter run(Log4j1ConfigurationConverter.CommandLineArguments cla) -
convert
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
run
private void run() -
verbose
-