When I do sbt run I see some header and footer info which I would like to get rid of:

$ sbt run 
[info] Set current project to XXX (in build file:/path/to/dir/)
<actual program output goes here; stuff I care about>
[success] Total time: 68 s, completed Apr 1, 2012 7:30:45 PM
$ 

How can I get rid of those 2 additional lines (i.e., the [info] and [success] lines)? Are there some build.sbt configuration settings available to do that? Ideally, I don't want to have another tool/dependency just to get rid of those 2 lines.

Following is a list of things I have tried:

  • Set run logLevel to Warn
  • Set Global logLevel to Warn
  • Set -Dsbt.log.noformat=true

The workaround that I am currently using: Copy the java invocation that sbt generates (by doing ps or top) as a result of doing fork in run := true and manually run that java command directly on the command line.

It would be much cleaner if sbt could be told not to print those lines.

  • Scala version: 2.9.1
  • SBT version: 0.11.1
Edit
Report