Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0310c03ecb | |||
9e8efc7dea | |||
00e1b8d862 | |||
c5cedb027d |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.14",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -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",
|
||||
|
@ -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 :)'
|
||||
});
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user