@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.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.3
    665
  • 0.9.2
    0
  • 0.9.1
    3
  • 0.9.0
    1,382

Package Sidebar

Install

npm i @types/splunk-bunyan-logger

Weekly Downloads

707

Version

0.9.3

License

MIT

Unpacked Size

4.15 kB

Total Files

5

Last publish

Collaborators

  • types