Interface FileTransportOptions<Level, Label>

interface FileTransportOptions<Level, Label> {
    asJSON?: boolean;
    audit_file?: string;
    date_format?: string;
    end_stream?: boolean;
    eol?: string;
    file_options?: FileOptions;
    filename?: string;
    filters?: Filter<Level, undefined>[];
    frequency?: Frequency;
    highWaterMark?: number;
    label: Label;
    level?: Level;
    max_logs?: string;
    muted?: boolean;
    size?: string;
    transforms?: Transform<Level, undefined>[];
    verbose?: boolean;
    onNew?(newFile?): void;
    onRotate?(oldFile?, newFile?): void;
}

Type Parameters

  • Level extends string
  • Label extends string = string

Hierarchy (view full)

Properties

asJSON?: boolean

Kricket on final dispatch can output JSON or the payload message. When "asJSON" is set to false the payload contains only the message.

Default

true
audit_file?: string
date_format?: string
end_stream?: boolean
eol?: string
file_options?: FileOptions
filename?: string
filters?: Filter<Level, undefined>[]

Array of Filters the payload must pass in order to be dispatched.

Default

[]
frequency?: Frequency
highWaterMark?: number

The stream limit which when reached we should pause writes until backpressure has been relieved.

Default

16
label: Label

The name/label for the Transport.

level?: Level

The log Level that has been assigned.

max_logs?: string
muted?: boolean

Whether or not Logger or Transform is muted.

size?: string
transforms?: Transform<Level, undefined>[]

Array of Transforms to be run when dispatching through transform.

Default

[]
verbose?: boolean

Methods

  • Parameters

    • Optional oldFile: string
    • Optional newFile: string

    Returns void