-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
33 lines (33 loc) · 1.01 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// <reference types="node" />
import type { LogLevel, LoggerService } from '@nestjs/common';
import { WriteStream } from 'fs';
export declare type Options = {
directory: string;
/**
* File name without the extension
*
* Default: `nest`
*/
filename?: string;
/**
* Default: `log`
*/
extension?: string;
};
declare type Streams = {
[key: string]: WriteStream;
};
export declare class FileLogger implements LoggerService {
protected options: Options;
protected streams: Streams;
constructor(options: Options);
protected createPath(level: LogLevel): string;
protected write(fileName: string, data: string): void;
log(message: any, ...optionalParams: any[]): void;
error(message: any, ...optionalParams: any[]): void;
warn(message: any, ...optionalParams: any[]): void;
debug(message: any, ...optionalParams: any[]): void;
verbose(message: any, ...optionalParams: any[]): void;
static create(options: Options): FileLogger;
}
export {};