From 250e8546737c3ef17a1687e22ba920989bbe71de Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 3 Nov 2018 23:02:58 +0100 Subject: [PATCH] BREAKING CHANGE(ILogPackage): added type and refactored properties --- ts/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index f61e1cf..9f759c8 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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; }