使用
~run
时,我不想看到 [info]
消息。
我已经尝试过
sbt -error
和 set logLevel := Level.Error
但仍然发出 [info]
消息。
这个问题类似于如何在 sbt 中抑制信息和成功消息?。然而,那里的解决方案仅适用于
sbt run
,而这个问题是关于在交互模式下启动 sbt 后发出的 ~run
(sbt -error
)。
我在https://stackoverflow.com/a/16676014/4050580找到了一半的解决方案。 仅将此功能应用于
run
命令使用:
run / outputStrategy := Some(StdoutOutput)