如何抑制 SBT 的调试消息?它们被记录到标准输出,因此运行项目会产生以下结果:
$ cat src/main/scala/Hello.scala
object Hello {
def main(args: Array[String]) {
Console.println("Hello sbt")
}
}
$ sbt run > out.txt
$ cat out.txt
[info] Set current project to hello (in build file:/home/synapse/projects/algs2/)
[info] Running Hello
Hello sbt
[success] Total time: 1 s, completed May 14, 2013 11:39:23 PM