@jrosadob/nestjs-sophia-framework
Version:
Franework para microservicios en NestJS
29 lines (28 loc) • 1.29 kB
TypeScript
import { ConsoleLogger, INestApplicationContext, LoggerService as NestLoggerService } from '@nestjs/common';
import { ConfigService } from '../config/config.service';
export declare class Logger extends ConsoleLogger implements NestLoggerService {
private readonly configService;
private static logstashUrl;
private static appContext;
private static configService;
constructor(configService: ConfigService);
private static getConfigService;
private static getRequest;
private static getResponse;
private static sendToLogstash;
setContext(context: string): void;
static setLogstashUrl(url: string): void;
static setApplicationContext(appContext: INestApplicationContext): void;
setLogstashUrl(url: string): void;
log(message: string): void;
log(message: any, context: string): void;
warn(message: string): void;
error(message: string): void;
debug(message: string): void;
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>;
}