Files
SerpentRace/SerpentRace_Backend/node_modules/winston-s3-transport/dist/s3-transport.d.ts
T
2025-07-11 19:56:28 +02:00

26 lines
971 B
TypeScript

import Transport from "winston-transport";
import { S3Client } from "@aws-sdk/client-s3";
import { LogGroup, Options, Config } from "./s3-transport.interface";
declare class S3Transport extends Transport {
logGroups: Record<string, LogGroup>;
s3Client: S3Client;
s3TransportConfig: Required<Config>;
constructor(options: Options);
updateLogGroupList(logGroupIdList?: string[]): Promise<boolean>;
/**
* Create bucket path
*/
static createBucketPath(groupId: string, s3TransportConfig: Config): string;
/**
* Create log group
*/
static createLogGroup(groupId: string, s3TransportConfig: Config): LogGroup;
log(logInfo: any, callback: any): Promise<void>;
static calcDataSize(data: any): number;
/**
* Upload data to s3 bucket
*/
static uploadToS3Bucket(s3Client: S3Client, bucket: string, bucketPath: string, data: any[], compress?: boolean): Promise<boolean>;
}
export default S3Transport;