add ILogDestination
This commit is contained in:
parent
3fa605e5bf
commit
0f521becfb
6
dist/index.d.ts
vendored
6
dist/index.d.ts
vendored
@ -9,3 +9,9 @@ export interface ILogContext {
|
|||||||
}
|
}
|
||||||
export declare type TEnvironment = "local" | "test" | "staging" | "production";
|
export declare type TEnvironment = "local" | "test" | "staging" | "production";
|
||||||
export declare type TRuntime = "node" | "browser";
|
export declare type TRuntime = "node" | "browser";
|
||||||
|
export interface IHandleLogFunc {
|
||||||
|
(logObject: any): void;
|
||||||
|
}
|
||||||
|
export interface ILogDestination {
|
||||||
|
handleLog: IHandleLogFunc;
|
||||||
|
}
|
||||||
|
@ -17,3 +17,11 @@ export interface ILogContext {
|
|||||||
|
|
||||||
export type TEnvironment = "local" | "test" | "staging" | "production";
|
export type TEnvironment = "local" | "test" | "staging" | "production";
|
||||||
export type TRuntime = "node" | "browser";
|
export type TRuntime = "node" | "browser";
|
||||||
|
|
||||||
|
export interface IHandleLogFunc {
|
||||||
|
(logObject): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ILogDestination {
|
||||||
|
handleLog: IHandleLogFunc
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user