Can we redirect the output of Canton Console to a file?

Like this in the terminal:

echo "hello world" > hello.txt

Try these for further guidance as the Ammonite REPL is what the Canton Console really is:

Hope this helps, BM.

1 Like

Hi @gyorgybalazsi :wave:

I tried this and it worked for me:

@ import{File, FileOutputStream}
import{File, FileOutputStream}

@ val fos = new FileOutputStream(new File("<ENTER FILE PATH/NAME>"))
fos: FileOutputStream =

@ Console.withOut(fos) { println(health.status) }


Thank you!