@awalsh128/winston-host
    Preparing search index...

    Interface Host

    Everything the shared logger needs from the host it runs in. Each adapter implements it for its host and never makes the shared package import the host's API.

    interface Host {
        createTransport(format: Format): TransportStream;
        getLevel(): LogLevelOrOff;
        onLevelChange?(listener: (level: LogLevelOrOff) => void): Disposable;
        dispose?(): void;
    }
    Index
    • Creates the transport that writes the host's lines: to an output channel, the workflow log, and so on. Runs once, when the logger is created.

      Parameters

      • format: Format

        The format for the transport to use, made from the logger's format option.

      Returns TransportStream