Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 even found a bug.

Thanks, Lars

like image 824
Lars Schneider Avatar asked May 31 '11 15:05

Lars Schneider


1 Answers

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
> 
like image 91
Kristian Domagala Avatar answered Sep 18 '22 20:09

Kristian Domagala