Logo ProcessKit API Reference

RotatingFileSink Type

A caller-owned write-only stream that rotates a file by size for use with `Command.StdoutTee` or `Command.StderrTee`. The active file is `path`; archives are `path.1` (newest) through `path.` (oldest). Writes are split at `maxBytes`, so no file created by the sink exceeds the configured size. Rotation and write failures propagate through the ordinary tee error path. Unlike `StdoutToFile`/`StderrToFile`, this sink is fed by ProcessKit's parent-side pump: it supports rotation, but stops receiving bytes when the parent exits. The caller owns and must dispose it.

Constructors

Constructor Description

RotatingFileSink(path, maxBytes, maxFiles)

Full Usage: RotatingFileSink(path, maxBytes, maxFiles)

Parameters:
    path : string
    maxBytes : int64
    maxFiles : int

Returns: RotatingFileSink
path : string
maxBytes : int64
maxFiles : int
Returns: RotatingFileSink

Instance members

Instance member Description

this.MaxBytes

Full Usage: this.MaxBytes

Returns: int64
Returns: int64

this.MaxFiles

Full Usage: this.MaxFiles

Returns: int
Returns: int

this.Path

Full Usage: this.Path

Returns: string
Returns: string

Type something to start searching.