Add a usage example for ProcessLogger

This commit is contained in:
Eric Kolotyluk 2011-11-28 17:15:49 -08:00
parent e223616e4b
commit eef0f172cc
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@ import java.io._
/** Encapsulates the output and error streams of a running process.
* Many of the methods of `ProcessBuilder` accept a `ProcessLogger` as
* an argument.
* an argument. Here is an example:
* {{{
* val logger = ProcessLogger(
* (outLine: String) => println("out: " + outLine),
* (errLine: String) => println("err: " + errLine))
* }}}
*
* @see [[scala.sys.process.ProcessBuilder]]
*/