forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloggly.d.ts
25 lines (22 loc) · 755 Bytes
/
loggly.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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
declare module "loggly" {
interface LogglyOptions {
token: string;
subdomain: string;
tags?: string[];
json?: boolean;
host?: string;
auth?: {
username: string;
password: string;
}
}
interface Loggly {
log(message: any, tags?: string[], callback?: (err: any, results: any) => void): void;
log(message: any, callback?: (err: any, results: any) => void): void;
}
function createClient(options: LogglyOptions): Loggly;
}