mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
26 lines
751 B
TypeScript
26 lines
751 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/borisyankov/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;
|
|
}
|