Commit e6849791 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

log4j2.properties updated to work as before

parent d9b209dc
...@@ -89,7 +89,7 @@ public class StartupBean { ...@@ -89,7 +89,7 @@ public class StartupBean {
} }
private void loadCustomLog4jProperties() { private void loadCustomLog4jProperties() {
String filename = "/etc/minerva/log4j.properties"; String filename = "/etc/minerva/log4j2.properties";
File file = new File(filename); File file = new File(filename);
if (file.exists()) { if (file.exists()) {
try { try {
......
rootLogger.level = INFO #Set root logger 's level
appenders = console
appenders = console, file
#Set the behavior of the CONSOLE appender
appender.console.type = Console appender.console.type = Console
appender.console.name = STDOUT appender.console.name = STDOUT
appender.console.layout.type = PatternLayout appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d %5p [%t] (%F:%L) - %m%n appender.console.layout.pattern = %d %5p [%t] (%F:%L) - %m%n
rootLogger.appenderRefs = console #Set the behavior of the FILE appender
appender.file.type = File
rootLogger.appenderRef.console.ref = STDOUT 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.name = lcsb
logger.minerva.level = debug logger.minerva.level = debug
#silence some debug information
logger.minerva-persist.name = lcsb.mapviewer.persist.DbUtils logger.minerva-persist.name = lcsb.mapviewer.persist.DbUtils
logger.minerva-persist.level = info logger.minerva-persist.level = info
logger.minerva-cache.name = lcsb.mapviewer.annotation.cache logger.minerva-cache.name = lcsb.mapviewer.annotation.cache
logger.minerva-cache.level = info logger.minerva-cache.level = info
#remove spring info messages
logger.springframework.name = org.springframework logger.springframework.name = org.springframework
logger.springframework.level = warn logger.springframework.level = warn
#remove hibernate info messages
logger.hibernate.name = org.hibernate logger.hibernate.name = org.hibernate
logger.hibernate.level = warn logger.hibernate.level = warn
rootLogger.level = info
rootLogger.appenderRefs = console, file
rootLogger.appenderRef.console.ref = STDOUT
rootLogger.appenderRef.file.ref = LogToFile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment