fix(core): update
This commit is contained in:
parent
d1dde293f6
commit
809df76043
@ -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)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user