3.0.6 • Published 6 months ago
@types/winston-loggly-bulk v3.0.6
Installation
npm install --save @types/winston-loggly-bulk
Summary
This package contains type definitions for winston-loggly-bulk (https://github.com/loggly/winston-loggly-bulk).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winston-loggly-bulk.
index.d.ts
// Type definitions for winston-loggly-bulk 3.0
// Project: https://github.com/loggly/winston-loggly-bulk
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Url } from 'url';
import TransportStream = require('winston-transport');
export interface BufferOptions {
size: number;
retriesInMilliseconds: number;
}
export interface LogglyOptions extends TransportStream.TransportStreamOptions {
auth?: {
username: string;
password: string;
} | null | undefined;
bufferOptions?: BufferOptions | undefined;
isBulk?: boolean | undefined;
json?: boolean | undefined;
networkErrorsOnConsole?: boolean | undefined;
proxy?: null | string | Url | undefined;
stripColors?: boolean | undefined;
subdomain: string;
tags?: string[] | undefined;
timestamp?: boolean | undefined;
token: string;
}
export class Loggly extends TransportStream {
constructor(options?: LogglyOptions);
extend(destination: any, source: any): any;
extractContext(obj: any): any;
formatQuery(query: any): any;
formatResults(results: any, _options: any): any;
log(meta: any, callback: any): any;
loglify(obj: any): any;
query(options: any, callback: any): any;
sanitizeLogs(logs: any): any;
stream(maybeOptions: any): any;
}
export function flushLogsAndExit(): void;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:36:05 GMT
- Dependencies: @types/winston-transport, @types/node
- Global values: none
Credits
These definitions were written by DefinitelyTyped.