2018-02-08 00:52:08 +00:00
|
|
|
export type TLogLevel =
|
|
|
|
| "error"
|
|
|
|
| "warn"
|
|
|
|
| "info"
|
|
|
|
| "verbose"
|
|
|
|
| "debug"
|
|
|
|
| "silly";
|
|
|
|
|
|
|
|
export interface ILogContext {
|
|
|
|
zone?: string;
|
|
|
|
company?: string;
|
|
|
|
companyunit?: string;
|
|
|
|
containerName?: string;
|
|
|
|
environment: TEnvironment;
|
|
|
|
runtime: TRuntime;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TEnvironment = "local" | "test" | "staging" | "production";
|
|
|
|
export type TRuntime = "node" | "browser";
|
2018-02-28 23:32:21 +00:00
|
|
|
|
|
|
|
export interface IHandleLogFunc {
|
|
|
|
(logObject): void
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILogDestination {
|
|
|
|
handleLog: IHandleLogFunc
|
|
|
|
}
|