UNPKG

winston-s3-transport

Version:

Logs generated through Winston can be transferred to an S3 bucket using `winston-s3-transport`.

13 lines (12 loc) 472 B
import TransportStream from "winston-transport"; import { S3Client } from "@aws-sdk/client-s3"; import { Options, Config, StreamInfo } from "./s3-transport.interface"; declare class S3Transport extends TransportStream { s3Client: S3Client; s3TransportConfig: Required<Config>; streamInfos: Map<string, StreamInfo>; constructor(options: Options); log(log: any, next: () => void): Promise<void>; close(): Promise<void>; } export default S3Transport;