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 2012/11/02 21:29:03 UTC
svn commit: r1405144 -
/logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml
Author: ggregory
Date: Fri Nov 2 20:29:02 2012
New Revision: 1405144
URL: http://svn.apache.org/viewvc?rev=1405144&view=rev
Log:
Fix formatting.
Modified:
logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml
Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml?rev=1405144&r1=1405143&r2=1405144&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml Fri Nov 2 20:29:02 2012
@@ -870,10 +870,8 @@ WARN [main]: Message 2</pre>
<source><![CDATA[<properties>
<property name="filters">org.junit,org.apache.maven,sun.reflect,java.lang.reflect</property>
</properties>
- .
- .
- <PatternLayout pattern="%m%xEx{filters(${filters})}%n"/>
- ]]></source>
+...
+<PatternLayout pattern="%m%xEx{filters(${filters})}%n"/>]]></source>
<p>The result printed to the console will appear similar to:
</p>
<source>Exception java.lang.IllegalArgumentException: IllegalArgument
@@ -884,14 +882,12 @@ at $Proxy0.invoke(Unknown Source) [?:?]
Caused by: java.lang.NullPointerException: null pointer
at org.apache.logging.log4j.core.pattern.ExtendedThrowableTest.testException(ExtendedThrowableTest.java:71) ~[test-classes/:?]
... 30 more</source>
- <h5>Ansi Styled</h5>
+ <h5>ANSI Styled</h5>
<p>The log level will be highlighted according to the event's log level. All the content that follows
the level will be bright green.</p>
- <source><![CDATA[
- <PatternLayout>
- <pattern>%d %highlight{%p} %style{%C{1.} [%t] %m}{bold,green}%n</pattern>
- </PatternLayout>
- ]]></source>
+ <source><![CDATA[<PatternLayout>
+ <pattern>%d %highlight{%p} %style{%C{1.} [%t] %m}{bold,green}%n</pattern>
+</PatternLayout>]]></source>
</subsection>
<a name="RFC5424Layout"/>
<subsection name="RFC5424Layout">
@@ -1050,11 +1046,11 @@ at org.apache.logging.log4j.core.pattern
<p>For example, if <code>abc</code> is the name of the file where
the XMLLayout ouput goes, then a well-formed XML file would be:
</p>
- <pre><?xml version="1.0" ?>
+ <source><?xml version="1.0" ?>
<!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd" [<!ENTITY data SYSTEM "abc">]>
<log4j:eventSet version="2.0" xmlns:log4j="http://logging.apache.org/log4j/">
-</log4j:eventSet></pre>
+</log4j:eventSet></source>
<p>This approach enforces the independence of the XMLLayout and the appender where it is embedded.
</p>
<p>The <code>version</code> attribute helps components to correctly intrepret output generated by XMLLayout.