scala.sys.process

ProcessLogger

trait ProcessLogger extends AnyRef

Encapsulates the output and error streams of a running process. Many of the methods of ProcessBuilder accept a ProcessLogger as an argument.

Source
ProcessLogger.scala
See also

ProcessBuilder

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ProcessLogger
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def buffer [T] (f: ⇒ T): T

    If a process is begun with one of these ProcessBuilder methods:

    If a process is begun with one of these ProcessBuilder methods:

    def !(log: ProcessLogger): Int def !<(log: ProcessLogger): Int

    The run will be wrapped in a call to buffer. This gives the logger an opportunity to set up and tear down buffering. At present the library implementations of ProcessLogger simply execute the body unbuffered.

    Attributes
    abstract
  2. def err (s: ⇒ String): Unit

    Will be called with each line read from the process error stream.

    Will be called with each line read from the process error stream.

    Attributes
    abstract
  3. def out (s: ⇒ String): Unit

    Will be called with each line read from the process output stream.

    Will be called with each line read from the process output stream.

    Attributes
    abstract