Files
DefinitelyTyped/loggly/index.d.ts
Ryan Cavanaugh 290d5dfb4d More fixes
2016-05-04 18:42:46 -07:00

24 lines
684 B
TypeScript

// Type definitions for loggly 1.0.8
// Project: https://github.com/nodejitsu/node-loggly
// Definitions by: Ray Martone <https://github.com/rmartone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface LogglyOptions {
token: string;
subdomain: string;
tags?: string[];
json?: boolean;
host?: string;
auth?: {
username: string;
password: string;
}
}
export interface Loggly {
log(message: any, tags?: string[], callback?: (err: any, results: any) => void): void;
log(message: any, callback?: (err: any, results: any) => void): void;
}
export function createClient(options: LogglyOptions): Loggly;