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
- Last updated: Tue, 07 Nov 2023 20:08:00 GMT
- Dependencies: @types/glossy, @types/node, winston, winston-transport
Credits
These definitions were written by Chris Barth, and Felix Hochgruber.