Compare commits

...

10 Commits

Author SHA1 Message Date
1d1a438f8e 1.0.30 2020-06-03 09:15:20 +00:00
aec150a240 fix(core): update 2020-06-03 09:15:19 +00:00
958a5d4db5 1.0.29 2020-06-03 07:48:25 +00:00
3a2af6634d fix(core): update 2020-06-03 07:48:25 +00:00
d89b610006 1.0.28 2020-06-03 07:45:56 +00:00
56bc5dfcdd fix(core): update 2020-06-03 07:45:55 +00:00
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
5 changed files with 36 additions and 16 deletions

View File

@ -54,6 +54,17 @@ testStable:
- docker
- priv
testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- windows
testBuild:
stage: test
script:

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/logdna",
"version": "1.0.25",
"version": "1.0.30",
"private": false,
"description": "an unoffical package for the logdna api",
"main": "dist_ts/index.js",

View File

@ -27,11 +27,12 @@ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20W
Use TypeScript for best in class instellisense.
This package is an unofficial package for the logdna. It comes with the following festures:
This package is an unofficial package for the logdna.com service. It comes with the following features:
- aggregates logs that require the same uri query parameters and sends them as bundle. This ensures the correct order of logs
- resends logs that failed to send.
- supports smartlog messages and the smartlog ecosystem
- aggregate logs that require the same uri query parameters and sends them as bundle. This ensures the correct order of logs within logdna.
- resend logs that failed to send.
- support smartlog messages and the smartlog ecosystem
- support giraffe.cloud ecosystem
```typescript
import { ILogPackage } from '@pushrocks/smartlog-interfaces';
@ -68,14 +69,6 @@ logDnaAccount.sendSmartlogPackage(smartlogPackage);
// 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
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++;
}
const testSmartlogMessage: ILogPackage = {
const testSmartlogMessage2: ILogPackage = {
timestamp: Date.now(),
type: 'log',
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}`
};
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();