You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2013/08/15 01:04:58 UTC
svn commit: r1514085 -
/logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml
Author: ggregory
Date: Wed Aug 14 23:04:57 2013
New Revision: 1514085
URL: http://svn.apache.org/r1514085
Log:
[LOG4J2-353] Use consistent conventions in configuration files: Use CamelCase for XML elements.
Modified:
logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml
Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml?rev=1514085&r1=1514084&r2=1514085&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/async.xml Wed Aug 14 23:04:57 2013
@@ -151,21 +151,21 @@
-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
to make all loggers asynchronous. -->
-<configuration status="WARN">
- <appenders>
+<Configuration status="WARN">
+ <Appenders>
<!-- Async Loggers will auto-flush in batches, so switch off immediateFlush. -->
<RandomAccessFile name="RandomAccessFile" fileName="async.log" immediateFlush="false" append="false">
<PatternLayout>
- <pattern>%d %p %c{1.} [%t] %m %ex%n</pattern>
+ <Pattern>%d %p %c{1.} [%t] %m %ex%n</Pattern>
</PatternLayout>
</RandomAccessFile>
- </appenders>
- <loggers>
- <root level="info" includeLocation="false">
+ </Appenders>
+ <Loggers>
+ <Root level="info" includeLocation="false">
<AppenderRef ref="RandomAccessFile"/>
- </root>
- </loggers>
-</configuration>]]></pre>
+ </Root>
+ </Loggers>
+</Configuration>]]></pre>
</p>
<p>
When
@@ -347,26 +347,26 @@
<!-- No need to set system property "Log4jContextSelector" to any value
when using <asyncLogger> or <asyncRoot>. -->
-<configuration status="WARN">
- <appenders>
+<Configuration status="WARN">
+ <Appenders>
<!-- Async Loggers will auto-flush in batches, so switch off immediateFlush. -->
<RandomAccessFile name="RandomAccessFile" fileName="asyncWithLocation.log"
immediateFlush="false" append="false">
<PatternLayout>
- <pattern>%d %p %class{1.} [%t] %location %m %ex%n</pattern>
+ <Pattern>%d %p %class{1.} [%t] %location %m %ex%n</Pattern>
</PatternLayout>
</RandomAccessFile>
- </appenders>
- <loggers>
+ </Appenders>
+ <Loggers>
<!-- pattern layout actually uses location, so we need to include it -->
- <asyncLogger name="com.foo.Bar" level="trace" includeLocation="true">
+ <AsyncLogger name="com.foo.Bar" level="trace" includeLocation="true">
<AppenderRef ref="RandomAccessFile"/>
- </asyncLogger>
- <root level="info" includeLocation="true">
+ </AsyncLogger>
+ <Root level="info" includeLocation="true">
<AppenderRef ref="RandomAccessFile"/>
- </root>
- </loggers>
-</configuration>]]></pre>
+ </Root>
+ </Loggers>
+</Configuration>]]></pre>
</p>
<p>
There are a few system properties