Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f075f7f23a | |||
809df76043 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.12",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.12",
|
||||
"private": false,
|
||||
"description": "anunoffical package for the logdna api",
|
||||
"main": "dist/index.js",
|
||||
|
@ -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 {
|
||||
public smartlogDestination: ILogDestination = {
|
||||
handleLog: (logPackageArg) => {
|
||||
this.sendSmartlogPackage(logPackageArg)
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user