2020-01-26 12:30:42 +00:00
|
|
|
#SAMPLE SERVER CONFIG (you must enable it by command line)
|
|
|
|
|
|
|
|
#default log level and active appenders (dest for logs)
|
2013-10-09 13:22:40 +00:00
|
|
|
log4j.rootLogger=info, console, logfile
|
2020-01-26 12:30:42 +00:00
|
|
|
|
|
|
|
#custom log level for java classes
|
2020-01-27 02:01:56 +00:00
|
|
|
log4j.logger.com.j256.ormlite=warn
|
2020-01-26 12:30:42 +00:00
|
|
|
#log4j.logger.mage.player.ai=warn
|
|
|
|
|
|
|
|
#custom log file with diag info (only from special classes)
|
|
|
|
#log4j.category.mage.server.game = INFO, diagfile
|
|
|
|
#log4j.category.mage.server.tournament = INFO, diagfile
|
|
|
|
#log4j.additivity.mage.server.game = false
|
|
|
|
#log4j.additivity.mage.server.tournament = 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
|
|
|
|
|
2011-05-05 03:18:13 +00:00
|
|
|
#console log
|
|
|
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
|
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
2020-01-26 12:30:42 +00:00
|
|
|
log4j.appender.console.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
2011-05-05 03:18:13 +00:00
|
|
|
log4j.appender.console.Threshold=info
|
|
|
|
|
2020-01-26 12:30:42 +00:00
|
|
|
#file log - without rolling
|
2011-05-12 15:32:28 +00:00
|
|
|
log4j.appender.logfile=org.apache.log4j.FileAppender
|
|
|
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
2020-01-26 12:30:42 +00:00
|
|
|
log4j.appender.logfile.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
|
|
|
log4j.appender.logfile.File=mageserver.log
|
|
|
|
|
|
|
|
#file log - rolling by index
|
|
|
|
log4j.appender.logfileByIndex=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.logfileByIndex.layout=org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.logfileByIndex.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
|
|
|
log4j.appender.logfileByIndex.File=mageserver.log
|
|
|
|
log4j.appender.logfileByIndex.MaxFileSize=10MB
|
|
|
|
log4j.appender.logfileByIndex.MaxBackupIndex=5
|
|
|
|
log4j.appender.logfileByIndex.append=true
|
|
|
|
|
|
|
|
#file log - rolling by dayly
|
|
|
|
log4j.appender.logfileByDayly=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
log4j.appender.logfileByDayly.layout=org.apache.log4j.PatternLayout
|
|
|
|
log4j.appender.logfileByDayly.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
|
|
|
log4j.appender.logfileByDayly.File=mageserver.log
|
|
|
|
log4j.appender.logfileByDayly.DatePattern='.'yyyy-MM-dd
|