Compare commits

..

2 Commits

Author SHA1 Message Date
f075f7f23a 1.0.12 2018-11-04 14:56:25 +01:00
809df76043 fix(core): update 2018-11-04 14:56:25 +01:00
3 changed files with 8 additions and 10 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.11", "version": "1.0.12",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.11", "version": "1.0.12",
"private": false, "private": false,
"description": "anunoffical package for the logdna api", "description": "anunoffical package for the logdna api",
"main": "dist/index.js", "main": "dist/index.js",

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) }
} };
};
}
} }