logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1203145 - in /logging/log4net/trunk: pom.xml src/site/xdoc/release/config-examples.xml src/site/xdoc/release/framework-support.xml
Date Thu, 17 Nov 2011 10:42:08 GMT
Author: bodewig
Date: Thu Nov 17 10:42:07 2011
New Revision: 1203145

URL: http://svn.apache.org/viewvc?rev=1203145&view=rev
Log:
Documentation for managed colored console appender.  Submitted by Pavlos Touboulidis.  LOG4NET-292

Modified:
    logging/log4net/trunk/pom.xml
    logging/log4net/trunk/src/site/xdoc/release/config-examples.xml
    logging/log4net/trunk/src/site/xdoc/release/framework-support.xml

Modified: logging/log4net/trunk/pom.xml
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/pom.xml?rev=1203145&r1=1203144&r2=1203145&view=diff
==============================================================================
--- logging/log4net/trunk/pom.xml (original)
+++ logging/log4net/trunk/pom.xml Thu Nov 17 10:42:07 2011
@@ -20,7 +20,7 @@
   <groupId>log4net</groupId>
   <artifactId>apache-log4net</artifactId>
   <packaging>pom</packaging>
-  <version>1.2.11</version>
+  <version>1.2.12</version>
   <name>Apache log4net</name>
   <description>Logging framework for Microsoft .NET Framework.</description>
   <url>http://logging.apache.org/log4net/</url>

Modified: logging/log4net/trunk/src/site/xdoc/release/config-examples.xml
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/site/xdoc/release/config-examples.xml?rev=1203145&r1=1203144&r2=1203145&view=diff
==============================================================================
--- logging/log4net/trunk/src/site/xdoc/release/config-examples.xml (original)
+++ logging/log4net/trunk/src/site/xdoc/release/config-examples.xml Thu Nov 17 10:42:07 2011
@@ -693,6 +693,56 @@ CREATE TABLE Log (
                 ]]></source>
             </section>
             
+            <section id="managedcoloredconsoleappender" name="ManagedColoredConsoleAppender">
+                <p>
+                    For full details see the SDK Reference entry: <a href="sdk/log4net.Appender.ManagedColoredConsoleAppender.html">log4net.Appender.ManagedColoredConsoleAppender</a>.
+                </p>
+                <p>
+                    The following example shows how to configure the <span class="code">ManagedColoredConsoleAppender</span>

+                    to log messages to the console. By default the messages are sent to the
console
+                    standard output stream. This example shows how to highlight error messages.
+                </p>
+                <source language="xml"><![CDATA[
+<appender name="ManagedColoredConsoleAppender" type="log4net.Appender.ManagedColoredConsoleAppender">
+    <mapping>
+        <level value="ERROR" />
+        <foreColor value="White" />
+        <backColor value="Red" />
+    </mapping>
+    <layout type="log4net.Layout.PatternLayout">
+        <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] -
%message%newline" />
+    </layout>
+</appender>
+                ]]></source>
+                <p>
+                    This example shows how to colorize multiple levels.
+                </p>
+                <source language="xml"><![CDATA[
+<appender name="ManagedColoredConsoleAppender" type="log4net.Appender.ManagedColoredConsoleAppender">
+    <mapping>
+        <level value="ERROR" />
+        <foreColor value="DarkRed" />
+    </mapping>
+    <mapping>
+        <level value="WARN" />
+        <foreColor value="Yellow" />
+    </mapping>
+    <mapping>
+        <level value="INFO" />
+        <foreColor value="White" />
+    </mapping>
+    <mapping>
+        <level value="DEBUG" />
+        <foreColor value="Blue" />
+    </mapping>
+
+    <layout type="log4net.Layout.PatternLayout">
+        <conversionPattern value="%date %-5level %-20.20logger: %message%newline"/>
+    </layout>
+</appender>
+                ]]></source>
+            </section>
+            
             <section id="memoryappender" name="MemoryAppender">
                 <p>
                     For full details see the SDK Reference entry: <a href="sdk/log4net.Appender.MemoryAppender.html">log4net.Appender.MemoryAppender</a>.

Modified: logging/log4net/trunk/src/site/xdoc/release/framework-support.xml
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/site/xdoc/release/framework-support.xml?rev=1203145&r1=1203144&r2=1203145&view=diff
==============================================================================
--- logging/log4net/trunk/src/site/xdoc/release/framework-support.xml (original)
+++ logging/log4net/trunk/src/site/xdoc/release/framework-support.xml Thu Nov 17 10:42:07
2011
@@ -332,6 +332,21 @@ limitations under the License.
                             <td>x</td>
                         </tr>
                         <tr>
+                            <td>ManagedColoredConsoleAppender</td>
+                            <td></td>
+                            <td></td>
+                            <td>x</td>
+                            <td>x</td>
+                            <td>x</td>
+                            <td>x</td>
+                            <td>x</td>
+                            <td></td>
+                            <td></td>
+                            <td>x</td>
+                            <td></td>
+                            <td></td>
+                        </tr>
+                        <tr>
                             <td>MemoryAppender</td>
                             <td>x</td>
                             <td>x</td>



Mime
View raw message