@jsprismarine/logger
Version:
JSPrismarine logger and utilities
23 lines • 569 B
TypeScript
import { default as Transport } from 'winston-transport';
export type ConsoleLike = {
write: (input: string) => void;
};
/**
* Custom winston transport adapted for the JSPrismarine console.
* @class
* @public
* @example
* ```typescript
* createLogger({
* transports: [
* new PrismarineTransport({ ...transports });
* ]
* });
* ```
*/
export declare class PrismarineTransport extends Transport {
console: ConsoleLike | undefined;
private buffer;
log(info: any, next: () => void): any;
}
//# sourceMappingURL=transport.d.ts.map