UNPKG

1.4 kBTypeScriptView Raw
1import { Logger as WinstonLogger } from 'winston';
2import { LoggerConfigInterface } from '../Config';
3export declare class LoggerService {
4 private readonly adapter;
5 constructor(config: LoggerConfigInterface);
6 getAdapter(): WinstonLogger;
7 log(level: string | object, message?: any, ...logArguments: any[]): this;
8 error(message: string | object, ...logArguments: any[]): this;
9 warn(message: string | object, ...logArguments: any[]): this;
10 help(message: string | object, ...logArguments: any[]): this;
11 data(message: string | object, ...logArguments: any[]): this;
12 info(message: string | object, ...logArguments: any[]): this;
13 debug(message: string | object, ...logArguments: any[]): this;
14 prompt(message: string | object, ...logArguments: any[]): this;
15 http(message: string | object, ...logArguments: any[]): this;
16 verbose(message: string | object, ...logArguments: any[]): this;
17 input(message: string | object, ...logArguments: any[]): this;
18 silly(message: string | object, ...logArguments: any[]): this;
19 emerg(message: string | object, ...logArguments: any[]): this;
20 alert(message: string | object, ...logArguments: any[]): this;
21 crit(message: string | object, ...logArguments: any[]): this;
22 warning(message: string | object, ...logArguments: any[]): this;
23 notice(message: string | object, ...logArguments: any[]): this;
24}