import type { IoHelper } from '../io/private'; export interface ISdkLogger { trace?: (...content: any[]) => void; debug: (...content: any[]) => void; info: (...content: any[]) => void; warn: (...content: any[]) => void; error: (...content: any[]) => void; } export declare class IoHostSdkLogger implements ISdkLogger { private readonly ioHelper; constructor(ioHelper: IoHelper); private notify; trace(..._content: any[]): void; debug(..._content: any[]): void; /** * Info is called mostly (exclusively?) for successful API calls * * Payload: * * (Note the input contains entire CFN templates, for example) * * ``` * { * clientName: 'S3Client', * commandName: 'GetBucketLocationCommand', * input: { * Bucket: '.....', * ExpectedBucketOwner: undefined * }, * output: { LocationConstraint: 'eu-central-1' }, * metadata: { * httpStatusCode: 200, * requestId: '....', * extendedRequestId: '...', * cfId: undefined, * attempts: 1, * totalRetryDelay: 0 * } * } * ``` */ info(...content: any[]): void; warn(...content: any[]): void; /** * Error is called mostly (exclusively?) for failing API calls * * Payload (input would be the entire API call arguments). * * ``` * { * clientName: 'STSClient', * commandName: 'GetCallerIdentityCommand', * input: {}, * error: AggregateError [ECONNREFUSED]: * at internalConnectMultiple (node:net:1121:18) * at afterConnectMultiple (node:net:1688:7) { * code: 'ECONNREFUSED', * '$metadata': { attempts: 3, totalRetryDelay: 600 }, * [errors]: [ [Error], [Error] ] * }, * metadata: { attempts: 3, totalRetryDelay: 600 } * } * ``` */ error(...content: any[]): void; } /** * This can be anything. * * For debug, it seems to be mostly strings. * For info, it seems to be objects. * * Stringify and join without separator. */ export declare function formatSdkLoggerContent(content: any[]): string; //# sourceMappingURL=sdk-logger.d.ts.map