How to set SBT default log level to "warn"?
default SBT log level is info (see http://code.google.com/p/simple-build-tool/wiki/RunningSbt).
How do I set it to warn as the default?
@Christian: Thanks! Did you get that to work? I modified the sbt.boot.properties accordingly and passed it via:
(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"
Both ways process my sbt.boot.properties but I still see [info] log messages. Overriding project settings does not work either.
I wonder if this works at all. I ev开发者_开发知识库en found a bug.
Thanks, Lars
You can set it temporarily by prefixing your action with warn
, eg
~> sbt warn compile
or from the sbt console:
~> 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
>
In XSBT this seems to be the way to do it from the console
set logLevel in run := Level.Debug
https://github.com/harrah/xsbt/wiki/Quick-Configuration-Examples
Note that these are SBT levels, so for example they don't work directly with Play 2.0!
You could define it in sbt.boot.properties as explained here: sbt wiki
精彩评论