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