Compare commits

..

4 Commits

Author SHA1 Message Date
f49062d247 1.0.27 2020-06-03 07:31:05 +00:00
bd45505c6a fix(core): update 2020-06-03 07:31:04 +00:00
e7f2ecc8d6 1.0.26 2020-06-03 03:45:10 +00:00
3950af87bd fix(core): update 2020-06-03 03:45:10 +00:00
4 changed files with 20 additions and 12 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.25", "version": "1.0.27",
"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.25", "version": "1.0.27",
"private": false, "private": false,
"description": "an unoffical package for the logdna api", "description": "an unoffical package for the logdna api",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -68,14 +68,6 @@ logDnaAccount.sendSmartlogPackage(smartlogPackage);
// most of the above funtions return promises should you want to wait for a log to be fully sent // most of the above funtions return promises should you want to wait for a log to be fully sent
``` ```
For further information read the linked docs at the top of this README.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://mojoio.gitlab.io/assets/repo-footer.svg)](https://mojo.io)
## Contribution ## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :) We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)

View File

@ -55,7 +55,7 @@ tap.test('should send in order', async () => {
i++; i++;
} }
const testSmartlogMessage: ILogPackage = { const testSmartlogMessage2: ILogPackage = {
timestamp: Date.now(), timestamp: Date.now(),
type: 'log', type: 'log',
level: 'warn', level: 'warn',
@ -69,7 +69,23 @@ tap.test('should send in order', async () => {
}, },
message: `this is an awesome log message sent by the tapbundle test #${i}` message: `this is an awesome log message sent by the tapbundle test #${i}`
}; };
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage); testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage2);
const testSmartlogMessage3: ILogPackage = {
timestamp: Date.now(),
type: 'log',
level: 'error',
context: {
company: 'Lossless GmbH',
companyunit: 'lossless.cloud',
containerName: 'ci-mojoio-logdna',
environment: 'test',
runtime: 'node',
zone: 'shipzone'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage3);
}); });
tap.start(); tap.start();