allow settings logging level via a sys config in unit tests

Pipe in the `tests.es.logger.level` system property to the log4j config file used in tests. We still default to info. Also adapts the logger name to use the first letter of packages.
This commit is contained in:
Boaz Leskes 2016-09-29 01:33:13 +02:00
parent 92ab44d35c
commit 953a8a959b
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@ status = error
appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%m%n
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
rootLogger.level = info
rootLogger.level = ${sys:tests.es.logger.level:-info}
rootLogger.appenderRef.console.ref = console
e