Lar*_*der 9 logging default scala sbt
默认SBT日志级别为info(请参阅http://code.google.com/p/simple-build-tool/wiki/RunningSbt).
如何将其设置为默认警告?
@Christian:谢谢!你有这个工作吗?我相应地修改了sbt.boot.properties并通过以下方式传递:
(1)-Dsbt.boot.properties = mysbt.boot.properties
(2)-jar /usr/local/Cellar/sbt/0.7.7/libexec/sbt-launch-0.7.7.jar"@/usr/local/Cellar/sbt/0.7.7/libexec/mysbt.boot.属性"
两种方式都处理我的sbt.boot.properties,但我仍然看到[info]日志消息.覆盖项目设置也不起作用.
我想知道这是否有效.我甚至发现了一个bug.
谢谢,拉尔斯
您可以通过为您的操作添加前缀来临时设置它warn,例如
~> sbt warn compile
Run Code Online (Sandbox Code Playgroud)
或者从sbt控制台:
~> sbt
[info] Building project test 1.0 against Scala 2.8.1
[info] using TestProject with sbt 0.7.7 and Scala 2.7.7
> warn
Set log level to warn
> compile
>
Run Code Online (Sandbox Code Playgroud)
在XSBT中,这似乎是从控制台执行此操作的方法
set logLevel in run := Level.Debug
Run Code Online (Sandbox Code Playgroud)
https://github.com/harrah/xsbt/wiki/Quick-Configuration-Examples
请注意,这些是SBT级别,因此例如它们不能直接与Play 2.0一起使用!
| 归档时间: |
|
| 查看次数: |
6147 次 |
| 最近记录: |