ProcessLogger

scala.sys.process.ProcessLogger
See theProcessLogger companion trait
object ProcessLogger

Provides factories to create scala.sys.process.ProcessLogger, which are used to capture output of scala.sys.process.ProcessBuilder commands when run.

Attributes

Companion
trait
Source
ProcessLogger.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a scala.sys.process.ProcessLogger that redirects output to a java.io.File.

Creates a scala.sys.process.ProcessLogger that redirects output to a java.io.File.

Value parameters

file

the java.io.File to which output will be appended

Attributes

Returns

a FileProcessLogger that writes to the given file

Source
ProcessLogger.scala

Creates a scala.sys.process.ProcessLogger that sends all output, standard and error, to the passed function.

Creates a scala.sys.process.ProcessLogger that sends all output, standard and error, to the passed function.

Value parameters

fn

the function to apply to each line of standard and error output

Attributes

Returns

a ProcessLogger that passes all output to fn

Source
ProcessLogger.scala
def apply(fout: String => Unit, ferr: String => Unit): ProcessLogger

Creates a scala.sys.process.ProcessLogger that sends all output to the corresponding function.

Creates a scala.sys.process.ProcessLogger that sends all output to the corresponding function.

Value parameters

ferr

the function that will receive each line of standard error

fout

the function that will receive each line of standard output

Attributes

Returns

a ProcessLogger that passes output to fout and errors to ferr

Source
ProcessLogger.scala