UNPKG

nestjs-logitron

Version:

Powerful logger module for Nodejs/ Nestjs, seamlessly integrating Pino and Winston for flexible logging with easy configuration.

23 lines (20 loc) 468 B
import { LogEntry } from '../types/logger.types.js'; import 'pino'; import 'winston'; type SearchParams = { logFilePath: string; page: number; limit: number; logRegex: RegExp; level?: string; traceId?: string; appName?: string; message?: string; execution?: string; searchPayload?: string; }; declare function parseLogFile(params: SearchParams): Promise<{ total: number; data: LogEntry[]; }>; export { parseLogFile };