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) + } + }; }