BREAKING CHANGE(ILogPackage): added type and refactored properties

This commit is contained in:
Philipp Kunz 2018-11-03 23:02:58 +01:00
parent db528bd4c4
commit 250e854673

View File

@ -1,3 +1,4 @@
export type TLogType = 'log' | 'increment' | 'gauge' | 'error' | 'success';
export type TLogLevel = 'error' | 'warn' | 'info' | 'verbose' | 'debug' | 'silly';
export type TEnvironment = 'local' | 'test' | 'staging' | 'production';
export type TRuntime = 'node' | 'browser';
@ -12,8 +13,9 @@ export interface ILogContext {
}
export interface ILogPackage {
logContext: ILogContext;
logLevel: TLogLevel;
type: TLogType;
context: ILogContext;
level: TLogLevel;
message: string;
}