UNPKG

@zerosuxx/opentelemetry-nestjs

Version:

OpenTelemetry module for Nestjs with auto instrumentation and resource detection. Initially forked from https://github.com/overbit/opentelemetry-nestjs.git

19 lines (18 loc) 594 B
export interface ILogger { debug: (message: string, params?: Record<string, unknown>) => void; info: (message: string, params?: Record<string, unknown>) => void; warn: (message: string, params?: Record<string, unknown>) => void; error: (message: string, err?: Error, params?: Record<string, unknown>) => void; } export interface LoggerOptions { componentName: string; logLevel?: LogLevel; isProduction: boolean; metadata?: Record<string, unknown>; } export declare enum LogLevel { Debug = "debug", Info = "info", Warn = "warn", Error = "error" }