diff --git a/manual/listeners.html b/manual/listeners.html index bbb03e05d..e201638a6 100644 --- a/manual/listeners.html +++ b/manual/listeners.html @@ -418,6 +418,41 @@ log4j.appender.LogFile.file=build.log

For more information about configuring Log4J see its documentation page.

+

Using the Log4j 1.2 Bridge

+You could use the Log4j Bridge +if your application is written against the Log4j (1.x) API, but you want to use the Log4j 2.x runtime. +For using the bridge with Ant you have to add + +to your classpath (e.g. via the -lib option). +Translating the 1.x properties file into the 2.x xml syntax would result in +
+
<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="WARN">
+  <Appenders>
+    <File name="file" fileName="build.log">
+      <PatternLayout>
+        <Pattern>[%6r] %8c{1} : %m%n</Pattern>
+      </PatternLayout>
+    </File>
+  </Appenders>
+  <Loggers>
+    <Root level="ERROR">
+      <AppenderRef ref="file" level="DEBUG"/>
+    </Root>
+    <Logger name="org.apache.tools.ant.Project" level="INFO"/>
+    <Logger name="org.apache.tools.ant.Project" level="INFO"/>
+    <Logger name="org.apache.tools.ant.taskdefs" level="INFO"/>
+    <Logger name="org.apache.tools.ant.taskdefs.Echo" level="WARN"/>
+  </Loggers>
+</Configuration>
+
+
+

XmlLogger

@@ -605,7 +640,7 @@ developers.