Installation
npm install --save @types/datadog-winston
Summary
This package contains type definitions for datadog-winston (https://github.com/itsfadnis/datadog-winston).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/datadog-winston.
import TransportStream = require("winston-transport");
declare namespace DatadogWinston {
interface DatadogTransportOptions extends TransportStream.TransportStreamOptions {
apiKey: string;
hostname?: string | undefined;
service?: string | undefined;
ddsource?: string | undefined;
ddtags?: string | undefined;
intakeRegion?: string | undefined;
}
}
declare class DatadogWinston extends TransportStream {
constructor(options: DatadogWinston.DatadogTransportOptions);
log?(info: any, next: () => void): void;
}
export = DatadogWinston;
Additional Details
Credits
These definitions were written by Matt Hintzke.