mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
27 lines
650 B
TypeScript
27 lines
650 B
TypeScript
// Type definitions for logat 1.0
|
|
// Project: https://github.com/krvikash35/logat
|
|
// Definitions by: Vikash <https://github.com/krvikash35/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
///<reference types="node" />
|
|
|
|
declare module 'logat'{
|
|
|
|
interface LogOptionsI {
|
|
logLevel?: number,
|
|
logMethod?: number,
|
|
logFileName?: string
|
|
}
|
|
|
|
class Logger extends NodeJS.EventEmitter {
|
|
error(...args: any[]): void;
|
|
warn(...args: any[]): void;
|
|
info(...args: any[]): void;
|
|
debug(...args: any[]): void;
|
|
getOptions(): LogOptionsI;
|
|
setOptions(options: LogOptionsI): void;
|
|
}
|
|
|
|
export = new Logger();
|
|
}
|