@types/splunk-bunyan-logger
TypeScript icon, indicating that this package has built-in type declarations

0.9.3 • Public • Published

Installation

npm install --save @types/splunk-bunyan-logger

Summary

This package contains type definitions for splunk-bunyan-logger (http://dev.splunk.com).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/splunk-bunyan-logger.

index.d.ts

/// <reference types="node" />

import { Stream as BunyanStream } from "bunyan";
import { Config, EventFormatter, Logger as SplunkLogger, SendContext } from "splunk-logging";

export interface SplunkStream extends NodeJS.WritableStream {
    logger: SplunkLogger;
}

export interface SplunkBunyanStream extends BunyanStream {
    flush(callback?: (error: Error, req: any, res: any) => void): void;
    on(event: string, callback: (err: Error, context: SendContext) => void): void;
    setEventFormatter(eventFormatter: EventFormatter): void;
    stream: SplunkStream;
}

export function createStream(config: Config): SplunkBunyanStream;

Additional Details

Credits

These definitions were written by Alex Brick.

/@types/splunk-bunyan-logger/

    Package Sidebar

    Install

    npm i @types/splunk-bunyan-logger

    Weekly Downloads

    780

    Version

    0.9.3

    License

    MIT

    Unpacked Size

    4.15 kB

    Total Files

    5

    Last publish

    Collaborators

    • types