Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
1d1a438f8e | |||
aec150a240 | |||
958a5d4db5 | |||
3a2af6634d | |||
d89b610006 | |||
56bc5dfcdd | |||
f49062d247 | |||
bd45505c6a | |||
e7f2ecc8d6 | |||
3950af87bd |
@ -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
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.25",
|
||||
"version": "1.0.30",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -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",
|
||||
|
17
readme.md
17
readme.md
@ -27,11 +27,12 @@ Platform support | [;
|
||||
// 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)
|
||||
|
||||
[](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). :)
|
||||
|
20
test/test.ts
20
test/test.ts
@ -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();
|
||||
|
Reference in New Issue
Block a user