@mimik/sumologic-winston-logger 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README_Supplement.md +1 -1
- package/eslint.config.js +8 -5
- package/lib/awsKinesisTransport.js +1 -1
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ Formatting of SumoLogic logs is handled by this module in the following ways:
|
|
|
162
162
|
Listing 2 below show you how to declare a logger to run under ECMAScript 6 and then log using the various log levels supported by the Sumologic-Winston-Logger.
|
|
163
163
|
|
|
164
164
|
``` javascript
|
|
165
|
-
|
|
165
|
+
import logger from 'sumologic-winston-logger';
|
|
166
166
|
|
|
167
167
|
logger.log('debug', 'this is a debug statement using log');
|
|
168
168
|
logger.debug({ message: 'this is a debug statement using an object'});
|
package/README_Supplement.md
CHANGED
|
@@ -103,7 +103,7 @@ Formatting of SumoLogic logs is handled by this module in the following ways:
|
|
|
103
103
|
Listing 2 below show you how to declare a logger to run under ECMAScript 6 and then log using the various log levels supported by the Sumologic-Winston-Logger.
|
|
104
104
|
|
|
105
105
|
``` javascript
|
|
106
|
-
|
|
106
|
+
import logger from 'sumologic-winston-logger';
|
|
107
107
|
|
|
108
108
|
logger.log('debug', 'this is a debug statement using log');
|
|
109
109
|
logger.debug({ message: 'this is a debug statement using an object'});
|
package/eslint.config.js
CHANGED
|
@@ -5,17 +5,18 @@ import stylistic from '@stylistic/eslint-plugin';
|
|
|
5
5
|
|
|
6
6
|
const MAX_LENGTH_LINE = 180;
|
|
7
7
|
const MAX_FUNCTION_PARAMETERS = 6;
|
|
8
|
-
const MAX_LINES_IN_FILES =
|
|
9
|
-
const MAX_LINES_IN_FUNCTION =
|
|
8
|
+
const MAX_LINES_IN_FILES = 600;
|
|
9
|
+
const MAX_LINES_IN_FUNCTION = 150;
|
|
10
10
|
const MAX_STATEMENTS_IN_FUNCTION = 45;
|
|
11
11
|
const MIN_KEYS_IN_OBJECT = 10;
|
|
12
|
+
const MAX_COMPLEXITY = 30;
|
|
12
13
|
|
|
13
14
|
export default [
|
|
14
15
|
{
|
|
15
16
|
ignores: ['mochawesome-report/**', 'node_modules/**', 'dist/**'],
|
|
16
17
|
},
|
|
17
18
|
importPlugin.flatConfigs.recommended,
|
|
18
|
-
stylistic.configs
|
|
19
|
+
stylistic.configs.recommended,
|
|
19
20
|
js.configs.all,
|
|
20
21
|
{
|
|
21
22
|
plugins: {
|
|
@@ -36,6 +37,7 @@ export default [
|
|
|
36
37
|
'@stylistic/line-comment-position': ['off'],
|
|
37
38
|
'@stylistic/semi': ['error', 'always'],
|
|
38
39
|
'capitalized-comments': ['off'],
|
|
40
|
+
'complexity': ['error', MAX_COMPLEXITY],
|
|
39
41
|
'curly': ['off'],
|
|
40
42
|
'id-length': ['error', { exceptions: ['x', 'y', 'z', 'i', 'j', 'k'] }],
|
|
41
43
|
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
@@ -43,13 +45,14 @@ export default [
|
|
|
43
45
|
'init-declarations': ['off'],
|
|
44
46
|
'linebreak-style': ['off'],
|
|
45
47
|
'max-len': ['warn', MAX_LENGTH_LINE, { ignoreComments: true }],
|
|
46
|
-
'max-lines': ['warn', MAX_LINES_IN_FILES],
|
|
47
|
-
'max-lines-per-function': ['warn', MAX_LINES_IN_FUNCTION],
|
|
48
|
+
'max-lines': ['warn', { max: MAX_LINES_IN_FILES, skipComments: true }],
|
|
49
|
+
'max-lines-per-function': ['warn', { max: MAX_LINES_IN_FUNCTION, skipComments: true }],
|
|
48
50
|
'max-params': ['error', MAX_FUNCTION_PARAMETERS],
|
|
49
51
|
'max-statements': ['warn', MAX_STATEMENTS_IN_FUNCTION],
|
|
50
52
|
'no-confusing-arrow': ['off'], // arrow isnt confusing
|
|
51
53
|
'no-inline-comments': ['off'],
|
|
52
54
|
'no-process-env': ['error'],
|
|
55
|
+
'no-ternary': ['off'],
|
|
53
56
|
'no-undefined': ['off'],
|
|
54
57
|
'one-var': ['error', 'never'],
|
|
55
58
|
'processDoc/validate-document-env': ['error'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/sumologic-winston-logger",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Log wrapper for sumo, s3, kinesis and winston",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"url": "https://bitbucket.org/mimiktech/sumologic-winston-logger"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@mimik/lib-filters": "^2.0.
|
|
37
|
-
"@aws-sdk/client-s3": "3.
|
|
38
|
-
"@aws-sdk/client-kinesis": "3.
|
|
39
|
-
"axios": "1.
|
|
36
|
+
"@mimik/lib-filters": "^2.0.4",
|
|
37
|
+
"@aws-sdk/client-s3": "3.848.0",
|
|
38
|
+
"@aws-sdk/client-kinesis": "3.848.0",
|
|
39
|
+
"axios": "1.10.0",
|
|
40
40
|
"bluebird": "3.7.2",
|
|
41
41
|
"lodash.difference": "4.5.0",
|
|
42
42
|
"lodash.foreach": "4.5.0",
|
|
43
43
|
"lodash.isnil": "4.0.0",
|
|
44
44
|
"lodash.isobject": "3.0.2",
|
|
45
45
|
"lodash.isstring": "4.0.1",
|
|
46
|
-
"lodash.isundefined": "",
|
|
46
|
+
"lodash.isundefined": "3.0.1",
|
|
47
47
|
"lodash.reject": "4.6.0",
|
|
48
48
|
"lodash.split": "4.4.2",
|
|
49
49
|
"lodash.trim": "4.5.1",
|
|
@@ -52,22 +52,22 @@
|
|
|
52
52
|
"winston-transport": "4.9.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@eslint/js": "9.
|
|
56
|
-
"@mimik/eslint-plugin-document-env": "^2.0.
|
|
57
|
-
"@mimik/request-helper": "^2.0.
|
|
58
|
-
"@stylistic/eslint-plugin": "
|
|
59
|
-
"body-parser": "
|
|
55
|
+
"@eslint/js": "9.31.0",
|
|
56
|
+
"@mimik/eslint-plugin-document-env": "^2.0.8",
|
|
57
|
+
"@mimik/request-helper": "^2.0.2",
|
|
58
|
+
"@stylistic/eslint-plugin": "5.2.0",
|
|
59
|
+
"body-parser": "2.2.0",
|
|
60
60
|
"c8": "10.1.3",
|
|
61
|
-
"chai": "5.2.
|
|
62
|
-
"eslint": "9.
|
|
63
|
-
"eslint-plugin-import": "2.
|
|
64
|
-
"express": "
|
|
61
|
+
"chai": "5.2.1",
|
|
62
|
+
"eslint": "9.31.0",
|
|
63
|
+
"eslint-plugin-import": "2.32.0",
|
|
64
|
+
"express": "5.1.0",
|
|
65
65
|
"husky": "9.1.7",
|
|
66
|
-
"jsdoc-to-markdown": "9.1.
|
|
66
|
+
"jsdoc-to-markdown": "9.1.2",
|
|
67
67
|
"lodash.clone": "4.5.0",
|
|
68
|
-
"mocha": "11.1
|
|
68
|
+
"mocha": "11.7.1",
|
|
69
69
|
"mochawesome": "7.1.3",
|
|
70
|
-
"sinon": "
|
|
71
|
-
"supertest": "7.
|
|
70
|
+
"sinon": "21.0.0",
|
|
71
|
+
"supertest": "7.1.3"
|
|
72
72
|
}
|
|
73
73
|
}
|