UNPKG

azify-logger

Version:

Azify Logger Client - Centralized logging for OpenSearch

20 lines (16 loc) 526 B
import { Writable } from 'stream'; export interface BunyanStreamOptions { loggerUrl?: string; serviceName?: string; environment?: string; } /** * Creates a Bunyan stream for azify-logger * @param options - Configuration options * @returns Writable stream * @example * const bunyanStream = require('azify-logger/streams/bunyan'); * const stream = bunyanStream({ loggerUrl: 'http://localhost:3001' }); */ declare function createBunyanStream(options?: BunyanStreamOptions): Writable; export = createBunyanStream;