gerlichlab / looptrace

Fork (from EMBL Gitlab) of the looptrace project: https://git.embl.de/grp-ellenberg/looptrace
MIT License
2 stars 1 forks source link

Adopt logging in JVM part of project #208

Closed vreuter closed 2 months ago

vreuter commented 5 months ago

For the many examples run by Scalacheck, the println-based logging is too noisy.

vreuter commented 5 months ago

https://github.com/lightbend-labs/scala-logging

vreuter commented 5 months ago

This should work (in the sense of getting the logging messages in the pypiper log file) even if we use the default ConsoleAppender type for our log writer(s), as we currently get Scala log messages saved there:

grep -n "Input file count" ../pypiper_output/looptrace_log.md
56369:Input file count: 1891
56514:Input file count: 1891
vreuter commented 5 months ago

We can probably use roughly the default from logback, though we may want to pin this as logback.xml and logback-test.xml (with a less noisy level there, for tests), to avoid a change in logback affecting us. We'd put them directly in a folder on the class path: https://logback.qos.ch/faq.html#configFileLocation