fix(core): update

This commit is contained in:
Philipp Kunz 2018-11-04 14:56:25 +01:00
parent d1dde293f6
commit 809df76043

View File

@ -71,18 +71,16 @@ export class LogdnaAccount {
/** /**
* convenience function for smartlog * convenience function for smartlog
*/ */
async sendSmartlogPackage (smartlogPackageArg: ILogPackage) { public async sendSmartlogPackage (smartlogPackageArg: ILogPackage) {
this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg));
} }
/** /**
* returns a smartlog compatible log destination * returns a smartlog compatible log destination
*/ */
async getSmartlogDestination(): Promise<ILogDestination> { public smartlogDestination: ILogDestination = {
return { handleLog: (logPackageArg) => {
handleLog: (logPackageArg) => { this.sendSmartlogPackage(logPackageArg)
this.sendSmartlogPackage(logPackageArg) }
} };
};
}
} }