Compare commits

..

4 Commits

Author SHA1 Message Date
0310c03ecb 1.0.14 2018-11-04 15:37:55 +01:00
9e8efc7dea fix(core): update 2018-11-04 15:37:55 +01:00
00e1b8d862 1.0.13 2018-11-04 15:25:27 +01:00
c5cedb027d fix(core): update 2018-11-04 15:25:27 +01:00
5 changed files with 11 additions and 9 deletions

2
package-lock.json generated
View File

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

View File

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

View File

@ -22,7 +22,7 @@ tap.test('should create a standard log message', async () => {
containerName: 'ci-mojoio-logdna',
environment: 'test',
runtime: 'node',
zone: 'ship.zone'
zone: 'shipzone'
},
message: 'this is an awesome log message :)'
});

View File

@ -70,7 +70,7 @@ export class LogdnaMessage {
env: smartlogPackageArg.context.environment,
hostname: smartlogPackageArg.context.zone,
level: smartlogPackageArg.level,
app: smartlogPackageArg.context.zone,
app: smartlogPackageArg.context.containerName,
tags: (() => {
const tagArray: string[] = [];
tagArray.push(smartlogPackageArg.context.company);

View File

@ -78,9 +78,11 @@ export class LogdnaAccount {
/**
* returns a smartlog compatible log destination
*/
public smartlogDestination: ILogDestination = {
handleLog: (logPackageArg) => {
this.sendSmartlogPackage(logPackageArg)
}
};
public get smartlogDestination (): ILogDestination {
return {
handleLog: (logPackageArg) => {
this.sendSmartlogPackage(logPackageArg);
}
};
}
}