UNPKG

@jrosadob/nestjs-sophia-framework

Version:

Franework para microservicios en NestJS

28 lines (27 loc) 1.28 kB
import { ConsoleLogger, LoggerService as NestLoggerService } from '@nestjs/common'; import { ConfigService } from '../config/config.service'; export declare class LoggerRequest extends ConsoleLogger implements NestLoggerService { private readonly configService; private static logstashUrl; private static configService; private static request; private static response; constructor(configService: ConfigService); static setConfigService(configService: ConfigService): void; static setRequest(request: any): Promise<void>; static setResponse(response: any): Promise<void>; private static sendToLogstash; warn(message: any): any; warn(message: any, context: string): any; error(message: string): any; error(message: string, trace: string): any; error(message: string, trace: string, meta: any): any; debug(message: string): any; debug(message: any, context: string): any; static log(message: string, meta?: any): Promise<void>; static warn(message: string, meta?: any): Promise<void>; static error(message: string): any; static error(message: string, trace: string): any; static error(message: string, trace: string, meta: any): any; static debug(message: string, meta?: any): Promise<void>; }