Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

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 {
}
private void loadCustomLog4jProperties() {
String filename = "/etc/minerva/log4j.properties";
String filename = "/etc/minerva/log4j2.properties";
File file = new File(filename);
if (file.exists()) {
try {
......
rootLogger.level = INFO
appenders = console
#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
rootLogger.appenderRefs = console
rootLogger.appenderRef.console.ref = STDOUT
#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
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