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