UNPKG

azify-logger

Version:

Azify Logger Client - Centralized logging for OpenSearch

20 lines (16 loc) 513 B
import { Transform } from 'stream'; export interface PinoStreamOptions { loggerUrl?: string; serviceName?: string; environment?: string; } /** * Creates a Pino stream for azify-logger * @param options - Configuration options * @returns Transform stream * @example * const pinoStream = require('azify-logger/streams/pino'); * const stream = pinoStream({ loggerUrl: 'http://localhost:3001' }); */ declare function createPinoStream(options?: PinoStreamOptions): Transform; export = createPinoStream;