From 517f9b6a08ceb795c9b79f0070c2a71eb9620f28 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 30 Apr 2014 16:42:59 +0530 Subject: [PATCH] Now fatat messages of the Game Worker are logged into separate magediag.log file --- Mage.Server/src/main/resources/log4j.properties | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Mage.Server/src/main/resources/log4j.properties b/Mage.Server/src/main/resources/log4j.properties index 218216521c..4829212b09 100644 --- a/Mage.Server/src/main/resources/log4j.properties +++ b/Mage.Server/src/main/resources/log4j.properties @@ -18,4 +18,12 @@ log4j.appender.console.Threshold=DEBUG log4j.appender.logfile=org.apache.log4j.FileAppender log4j.appender.logfile.File=mageserver.log log4j.appender.logfile.layout=org.apache.log4j.PatternLayout -log4j.appender.logfile.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n \ No newline at end of file +log4j.appender.logfile.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n + +#diagnostic log for game core classes +log4j.category.mage.server.game = INFO, diagfile +log4j.additivity.mage.server.game = false +log4j.appender.diagfile=org.apache.log4j.FileAppender +log4j.appender.diagfile.File=magediag.log +log4j.appender.diagfile.layout=org.apache.log4j.PatternLayout +log4j.appender.diagfile.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n