This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.d.ts
44 lines (36 loc) · 1.13 KB
/
index.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export declare interface Logger {
debug(tags: object, message?: string): void;
debug(message: string, tags?: object): void;
info(tags: object, message?: string): void;
info(message: string, tags?: object): void;
warn(tags: object, message?: string): void;
warn(message: string, tags?: object): void;
error(tags: object, message?: string): void;
error(message: string, tags?: object): void;
fatal(tags: object, message?: string): void;
fatal(message: string, tags?: object): void;
}
export declare interface WatchOptions {
ignorePaths?: string[];
obfuscatePayload?: boolean;
stringifyPayload?: boolean;
}
export declare class EventLogger {
constructor(logger: Logger);
watch(process: any, options?: any);
}
export declare interface Serializers {
[key: string]: any;
}
export declare const Serializers: Serializers;
export declare interface ProcessInfo {
app: string;
version: string;
node: string;
}
export declare const ProcessInfo: ProcessInfo;
export declare interface Streams {
HttpWritableStream: NodeJS.WritableStream;
Standardization: NodeJS.WritableStream;
}
export declare const Streams: Streams;