logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405144 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml
Date Fri, 02 Nov 2012 20:29:03 GMT
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>&lt;?xml version="1.0" ?&gt;
+          <source>&lt;?xml version="1.0" ?&gt;
 &lt;!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd" [&lt;!ENTITY data SYSTEM "abc"&gt;]&gt;
 &lt;log4j:eventSet version="2.0" xmlns:log4j="http://logging.apache.org/log4j/"&gt;
 &nbsp;&nbsp;
-&lt;/log4j:eventSet&gt;</pre>
+&lt;/log4j:eventSet&gt;</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.



Mime
View raw message