@types/winston-loggly-bulk
TypeScript icon, indicating that this package has built-in type declarations

3.0.6 • Public • Published

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

/// <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

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/winston-loggly-bulk

Weekly Downloads

6,454

Version

3.0.6

License

MIT

Unpacked Size

5.23 kB

Total Files

5

Last publish

Collaborators

  • types