2.4.3 • Published 6 months ago

@types/winston-syslog v2.4.3

Weekly downloads
5,799
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for winston-syslog 2.4
// Project: https://github.com/winstonjs/winston-syslog, https://github.com/indexzero/winston-syslog
// Definitions by: Chris Barth <https://github.com/cjbarth>, Felix Hochgruber <https://github.com/felix-hoc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

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

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.

1.0.6

6 months ago

1.0.5

7 months ago

2.4.1

8 months ago

2.4.3

6 months ago

2.4.2

7 months ago

2.4.0

3 years ago

2.0.4

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

2.0.3

4 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago