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
*/
async sendSmartlogPackage (smartlogPackageArg: ILogPackage) {
public async sendSmartlogPackage (smartlogPackageArg: ILogPackage) {
this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg));
}
/**
* returns a smartlog compatible log destination
*/
async getSmartlogDestination(): Promise<ILogDestination> {
return {
handleLog: (logPackageArg) => {
this.sendSmartlogPackage(logPackageArg)
}
};
}
public smartlogDestination: ILogDestination = {
handleLog: (logPackageArg) => {
this.sendSmartlogPackage(logPackageArg)
}
};
}