logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1291498 - /logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml
Date Mon, 20 Feb 2012 22:39:26 GMT
Author: ihabunek
Date: Mon Feb 20 22:39:26 2012
New Revision: 1291498

URL: http://svn.apache.org/viewvc?rev=1291498&view=rev
Log:
Fixed example for LoggerLayoutTTCC.

Modified:
    logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml

Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml?rev=1291498&r1=1291497&r2=1291498&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml Mon Feb 20 22:39:26 2012
@@ -140,10 +140,12 @@ array(
 				</div>
 					
 
-				<p>Running the following code:</p>
+				<p>For this example, some Nested Diagnostic Context is added also. Running the
following code:</p>
 
 <pre class="prettyprint linenums">
 Logger::configure("config.xml");
+LoggerNDC::push("Some Context");
+
 $logger = Logger::getLogger('myLogger');
 $logger->info("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
 $logger->debug("Donec a diam lectus.");
@@ -153,11 +155,10 @@ $logger->warn("Sed sit amet ipsum mauris
 				<p>Produces the following output:</p>
 
 <pre>
-INFO - My first message.
-DEBUG - My second message.
-WARN - My third message.
+02/20/12 23:36:39,772 [9820] INFO myLogger Some Context - Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
+02/20/12 23:36:39,773 [9820] DEBUG myLogger Some Context - Donec a diam lectus.
+02/20/12 23:36:39,773 [9820] WARN myLogger Some Context - Sed sit amet ipsum mauris.
 </pre>
-
 			</subsection>
 		</section>
 	</body>



Mime
View raw message