mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Cleanup code (added logs rotation to tests)
This commit is contained in:
parent
9eba000cf5
commit
5c058d8f85
2 changed files with 13 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -92,6 +92,9 @@ Mage.Verify/*.zip
|
|||
Mage.Verify/*.json
|
||||
Mage.Verify/db
|
||||
|
||||
# Logs rotation
|
||||
*.log.*
|
||||
|
||||
# Utils
|
||||
releases
|
||||
Utils/author.txt
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#default settings (uses for TESTS run)
|
||||
|
||||
#default log level and active appenders (dest for logs)
|
||||
log4j.rootLogger=info, console, logfile, watchdog
|
||||
log4j.rootLogger=info, console, logfileByIndex, watchdog
|
||||
|
||||
#custom log level for java classes
|
||||
log4j.logger.com.j256.ormlite=warn
|
||||
|
@ -20,6 +20,15 @@ log4j.appender.logfile.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS}
|
|||
log4j.appender.logfile.File=magetest.log
|
||||
log4j.appender.logfile.Threshold=info
|
||||
|
||||
#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=magetest.log
|
||||
log4j.appender.logfileByIndex.MaxFileSize=10MB
|
||||
log4j.appender.logfileByIndex.MaxBackupIndex=3
|
||||
log4j.appender.logfileByIndex.append=true
|
||||
|
||||
#file log - errors only
|
||||
log4j.appender.watchdog=org.apache.log4j.FileAppender
|
||||
log4j.appender.watchdog.layout=org.apache.log4j.PatternLayout
|
||||
|
|
Loading…
Reference in a new issue