From 0f521becfb0be6a58a0173e79bf24dde690586dc Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 1 Mar 2018 00:32:21 +0100 Subject: [PATCH] add ILogDestination --- dist/index.d.ts | 6 ++++++ ts/index.ts | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/dist/index.d.ts b/dist/index.d.ts index 630b34e..afa0b20 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -9,3 +9,9 @@ export interface ILogContext { } export declare type TEnvironment = "local" | "test" | "staging" | "production"; export declare type TRuntime = "node" | "browser"; +export interface IHandleLogFunc { + (logObject: any): void; +} +export interface ILogDestination { + handleLog: IHandleLogFunc; +} diff --git a/ts/index.ts b/ts/index.ts index 49b3437..8a1ebf7 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -17,3 +17,11 @@ export interface ILogContext { export type TEnvironment = "local" | "test" | "staging" | "production"; export type TRuntime = "node" | "browser"; + +export interface IHandleLogFunc { + (logObject): void +} + +export interface ILogDestination { + handleLog: IHandleLogFunc +} \ No newline at end of file