From c5cedb027d4a20b8a9c7b7191c94a435a9f3d523 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 4 Nov 2018 15:25:27 +0100 Subject: [PATCH] fix(core): update --- ts/logdna.logdnaaccount.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ts/logdna.logdnaaccount.ts b/ts/logdna.logdnaaccount.ts index 30a2935..2cc9aaa 100644 --- a/ts/logdna.logdnaaccount.ts +++ b/ts/logdna.logdnaaccount.ts @@ -78,9 +78,11 @@ export class LogdnaAccount { /** * returns a smartlog compatible log destination */ - public smartlogDestination: ILogDestination = { - handleLog: (logPackageArg) => { - this.sendSmartlogPackage(logPackageArg) - } - }; + public get smartlogDestination (): ILogDestination { + return { + handleLog: (logPackageArg) => { + this.sendSmartlogPackage(logPackageArg); + } + }; + } }