log4j2.properties 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#Set root logger 's level

appenders = console, file

#Set the behavior of the CONSOLE appender 
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d %5p [%t] (%F:%L) - %m%n

#Set the behavior of the FILE appender 
appender.file.type = File
appender.file.name = LogToFile
appender.file.fileName=${sys:catalina.base}/logs/minerva.txt
appender.file.layout.type=PatternLayout
appender.file.layout.pattern= %d %5p [%t] (%F:%L) - %m%n

logger.minerva.name = lcsb
logger.minerva.level = debug
#silence some debug information
logger.minerva-persist.name = lcsb.mapviewer.persist.DbUtils
logger.minerva-persist.level = info

logger.minerva-cache.name = lcsb.mapviewer.annotation.cache
logger.minerva-cache.level = info

#remove spring info messages
logger.springframework.name = org.springframework
logger.springframework.level = warn

#remove hibernate info messages
logger.hibernate.name = org.hibernate
logger.hibernate.level = warn

rootLogger.level = info
rootLogger.appenderRefs = console, file
rootLogger.appenderRef.console.ref = STDOUT
rootLogger.appenderRef.file.ref = LogToFile