Вопрос

Trying to use sbt with

Keys.fork := true

With this option all messages from slf4j logger shown as error-message

It looks like

[error] 0 [main] INFO test - Test

Without fork it looks like

1 [run-main] INFO test - Test
  • sbt version: 0.13
Это было полезно?

Решение

This is documented at http://www.scala-sbt.org/0.13.2/docs/Detailed-Topics/Forking.html , in the “Configuring output” section:

By default, forked output is sent to the Logger, with standard output logged at the Info level and standard error at the Error level. This can be configured with the outputStrategy setting,

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top