如何将SBT默认日志级别设置为“警告”?

| 默认的SBT日志级别为info(请参阅http://code.google.com/p/simple-build-tool/wiki/RunningSbt)。 如何将其设置为默认警告? @克里斯蒂安:谢谢!你明白了吗?我相应地修改了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 .properties \” 两种方式都可以处理我的sbt.boot.properties,但是我仍然看到[info]日志消息。覆盖项目设置也不起作用。 我不知道这是否奏效。我什至发现了一个错误。 谢谢, 拉尔斯     
已邀请:
        您可以在sbt.boot.properties中对其进行定义,如下所示:sbt Wiki     
        您可以通过在动作前加上“ 0”作为临时设置,例如
~> sbt warn compile
或从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
> 
    
        在XSBT中,这似乎是从控制台执行此操作的方法
set logLevel in run := Level.Debug 
https://github.com/harrah/xsbt/wiki/Quick-Configuration-Examples 请注意,这些是SBT级别,因此,例如,它们不能直接在Play 2.0中使用!     

要回复问题请先登录注册