From 809df7604331e46c2fe6d16c26cf2d920a1ba37d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 4 Nov 2018 14:56:25 +0100 Subject: [PATCH] fix(core): update --- ts/logdna.logdnaaccount.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ts/logdna.logdnaaccount.ts b/ts/logdna.logdnaaccount.ts index b0491cd..30a2935 100644 --- a/ts/logdna.logdnaaccount.ts +++ b/ts/logdna.logdnaaccount.ts @@ -71,18 +71,16 @@ export class LogdnaAccount { /** * convenience function for smartlog */ - async sendSmartlogPackage (smartlogPackageArg: ILogPackage) { + public async sendSmartlogPackage (smartlogPackageArg: ILogPackage) { this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); } /** * returns a smartlog compatible log destination */ - async getSmartlogDestination(): Promise { - return { - handleLog: (logPackageArg) => { - this.sendSmartlogPackage(logPackageArg) - } - }; - } + public smartlogDestination: ILogDestination = { + handleLog: (logPackageArg) => { + this.sendSmartlogPackage(logPackageArg) + } + }; }