scala - Suppressing sbt debug output -


how suppress sbt's debug messages? logged stdout running project produces this:

$ 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 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 

as mentioned in this reference linked other answer, possible change logging level before arriving @ sbt console.

"to set logging level before commands executed on startup, use -- before logging level."

for example

$ sbt --error "runmain my.pckg.main" 

however still [success] message logged @ end. silencing that, consider piping grep -v.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -