UNPKG

@nestjs-labs/nestjs-pino-extra

Version:

Enhanced nestjs-pino with OpenTelemetry, Loki, file rotation and enterprise features

22 lines 987 B
import type { ConfigService } from '@nestjs/config'; import type { Params } from 'nestjs-pino'; import type { Level } from 'pino'; import { type LokiOptions } from '@nestjs-labs/pino-http-extra'; export interface LogConfig { app: string; filename?: string; level: Level; loki?: LokiOptions; spanIdKey: string; traceIdKey: string; } export declare function getLokiOptions(configService: ConfigService): LokiOptions | undefined; export declare function getOtelOptions(configService: ConfigService): { spanIdKey: string; traceIdKey: string; }; export declare function extractLogConfig(configService: ConfigService): LogConfig; export declare function getPinoHttpFromConfig(config: LogConfig): Params['pinoHttp']; export declare function getParamsFromConfig(config: LogConfig, overrides?: Params): Params; export declare function getNestjsPinoModuleOptions(configService: ConfigService, overrides?: Params): Params; //# sourceMappingURL=module-option.d.ts.map