You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ma...@apache.org on 2007/08/20 00:23:17 UTC

svn commit: r567493 - /mina/trunk/example/src/main/resources/log4j.properties

Author: maarten
Date: Sun Aug 19 15:23:14 2007
New Revision: 567493

URL: http://svn.apache.org/viewvc?rev=567493&view=rev
Log:
added pattern that uses the MDC

Modified:
    mina/trunk/example/src/main/resources/log4j.properties

Modified: mina/trunk/example/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/mina/trunk/example/src/main/resources/log4j.properties?rev=567493&r1=567492&r2=567493&view=diff
==============================================================================
--- mina/trunk/example/src/main/resources/log4j.properties (original)
+++ mina/trunk/example/src/main/resources/log4j.properties Sun Aug 19 15:23:14 2007
@@ -4,4 +4,7 @@
 
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%X{user}] %X{remoteIp}:%X{remotePort} [%c] - %m%n
+
+# you could use this pattern to test the MDC with the Chat server
+#log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%X{user}] [%X{remoteIp}:%X{remotePort}] [%c] - %m%n
\ No newline at end of file