Log configuration for scala collector / enricher


#1

Hi all,

How would I add logback/log4j configuration to the scala executables? Haven’t seen it anywhere in the docs, and the akka docs only state it should go under “main/resources”, which isn’t possible in the case of executables.

Thanks in advance,
Victor.


#2

To answer myself:
The log can be configured through cmd line args to the executable, like so:
java -jar
-Dorg.slf4j.simpleLogger.defaultLogLevel=info
-Dorg.slf4j.simpleLogger.showDateTime=true
-Dorg.slf4j.simpleLogger.dateTimeFormat=“dd/MM/yyyy HH:mm:ss.SSSSZ”
-Dorg.slf4j.simpleLogger.levelInBrackets=true \