mirror of
https://github.com/correl/mage.git
synced 2024-12-01 19:19:55 +00:00
36 lines
No EOL
1.7 KiB
Properties
36 lines
No EOL
1.7 KiB
Properties
#SAMPLE CLIENT CONFIG (you must enable it by command line)
|
|
|
|
#default log level and active appenders (dest for logs)
|
|
log4j.rootLogger=info, console, logfileByIndex
|
|
|
|
#custom log level for java classes
|
|
log4j.logger.com.j256.ormlite=warn
|
|
#log4j.logger.mage.player.ai=warn
|
|
|
|
#console log
|
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.console.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
|
log4j.appender.console.Threshold=info
|
|
|
|
#file log - without rolling
|
|
log4j.appender.logfile=org.apache.log4j.FileAppender
|
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.logfile.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %-90m =>[%t] %C{1}.%M %n
|
|
log4j.appender.logfile.File=mageclient.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=mageclient.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=mageclient.log
|
|
log4j.appender.logfileByDayly.DatePattern='.'yyyy-MM-dd |