system change

This commit is contained in:
2018-03-03 13:57:55 +01:00
parent 2dead1250a
commit fa92362547
2 changed files with 1 additions and 14 deletions

View File

@@ -1,19 +1,9 @@
export type Environment = "local" | "test" | "staging" | "production";
// interfaces
import { Client as ElasticClient } from "elasticsearch";
// other classes
import { LogScheduler } from "./elasticlog.classes.logscheduler";
export interface LogContext {
zone?: string;
containerName?: string;
environment: Environment;
}
export type TLogSeverity = "log" | "info" | "warn" | "error" | "fatal";
export interface IStandardLogParams {
message: string;
severity: string;
@@ -76,6 +66,7 @@ export class ElasticLog<T> {
type: "log",
body: {
"@timestamp": now.toISOString(),
zone: this.logContext.zone,
container: this.logContext.containerName,
environment: this.logContext.environment,
severity: logObject.severity,