Winston transports have an optional close() function defined.
Having to use kthxbye (not typed / standard) makes use with typescript painful and requires special treatment for cloudwatch transports vs other transports.
Action requested
Would it be too much trouble to add a close() function that runs kthxbye((error) => console.log(error))?
Type definitions
// Type definitions for winston-transport 3.0
// Project: https://github.com/winstonjs/winston-transport
// Definitions by: DABH <https://github.com/DABH>
// Definitions: https://github.com/winstonjs/winston-transport
/// <reference types="node" />
import * as stream from 'stream';
import * as logform from 'logform';
declare class TransportStream extends stream.Writable {
public format?: logform.Format;
public level?: string;
public silent?: boolean;
public handleExceptions?: boolean;
public handleRejections?: boolean;
constructor(opts?: TransportStream.TransportStreamOptions);
public log?(info: any, next: () => void): any;
public logv?(info: any, next: () => void): any;
public close?(): void;
}
Why this request
close()
function defined.kthxbye
(not typed / standard) makes use with typescript painful and requires special treatment for cloudwatch transports vs other transports.Action requested Would it be too much trouble to add a
close()
function that runskthxbye((error) => console.log(error))
?Type definitions