DWS Packages
    Preparing search index...

    Type Alias SinkFactory<TLogObject, TArgs>

    SinkFactory: (...args: TArgs) => LoggerSink<TLogObject>

    A factory that builds a LoggerSink.

    The factory is serialized and re-evaluated inside the logger worker, so its body must be self-contained: it can only rely on its arguments, runtime globals, and dynamic import() — never on module-scoped imports captured by closure.

    Type Parameters

    • TLogObject = unknown

      The shape of the objects this sink accepts.

    • TArgs extends readonly unknown[] = readonly unknown[]

      The factory arguments forwarded from registerSink.

    Type Declaration