mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 08:05:37 +00:00
typings: add third-party typings for logdna-winston
This commit is contained in:
parent
4cfed50b95
commit
43a2373f85
27
typings/logdna-winston/index.d.ts
vendored
Normal file
27
typings/logdna-winston/index.d.ts
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Taken from https://github.com/efugulin/logdna-winston/blob/master/index.d.ts
|
||||
import { ConstructorOptions } from 'logdna';
|
||||
import Transport from 'winston-transport';
|
||||
|
||||
declare class LogDNATransport extends Transport {
|
||||
constructor(options: LogDNATransport.TransportOptions);
|
||||
}
|
||||
|
||||
declare namespace LogDNATransport {
|
||||
interface TransportOptions
|
||||
extends Transport.TransportStreamOptions,
|
||||
ConstructorOptions {
|
||||
/** The LogDNA API key. */
|
||||
key: string;
|
||||
/** The name of this transport (default: "LogDNA"). */
|
||||
name?: string;
|
||||
/** Level of messages that this transport should log (default: "debug"). */
|
||||
level?: string;
|
||||
/**
|
||||
* Allow meta objects to be passed with each line (default: false).
|
||||
* See logger ConstructorOptions for more information.
|
||||
*/
|
||||
index_meta?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = LogDNATransport;
|
Loading…
Reference in a new issue