Add remove(transport: string)

This commit is contained in:
Jason Hu
2016-03-24 09:32:41 -07:00
parent a44529fcb1
commit cc3e106d89

View File

@@ -38,6 +38,7 @@ declare module "winston" {
export function unhandleExceptions(...transports: TransportInstance[]): void;
export function add(transport: TransportInstance, options?: TransportOptions, created?: boolean): LoggerInstance;
export function clear(): void;
export function remove(transport: string): LoggerInstance;
export function remove(transport: TransportInstance): LoggerInstance;
export function startTimer(): ProfileHandler;
export function profile(id: string, msg?: string, meta?: any, callback?: (err: Error, level: string, msg: string, meta: any) => void): LoggerInstance;