@types/winston-syslog
TypeScript icon, indicating that this package has built-in type declarations

2.4.3 • Public • Published

Installation

npm install --save @types/winston-syslog

Summary

This package contains type definitions for winston-syslog (https://github.com/winstonjs/winston-syslog).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winston-syslog.

index.d.ts

/// <reference types="node" />
import * as dgram from "dgram";
import * as glossy from "glossy";
import * as net from "net";
import * as Transport from "winston-transport";

export interface SyslogTransportOptions extends Transport.TransportStreamOptions {
    host?: string | undefined;
    port?: number | undefined;
    path?: string | undefined;
    protocol?: string | undefined;
    pid?: number | undefined;
    facility?: string | undefined;
    localhost?: string | undefined;
    type?: string | undefined;
    app_name?: string | undefined;
    eol?: string | undefined;
    customProducer?: typeof glossy.Produce;
}

export interface SyslogTransportInstance extends Transport {
    producer: any;
    socket: dgram.Socket | net.Socket;

    connect(callback: (err: true | null) => any): void;

    new(options?: SyslogTransportOptions): SyslogTransportInstance;
}

export const Syslog: SyslogTransportInstance;

Additional Details

Credits

These definitions were written by Chris Barth, and Felix Hochgruber.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/winston-syslog

Weekly Downloads

19,131

Version

2.4.3

License

MIT

Unpacked Size

4.98 kB

Total Files

5

Last publish

Collaborators

  • types