@mimik/sumologic-winston-logger 2.2.0 → 2.2.2

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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -160,7 +160,7 @@ To learn more about setting this environment variable, see the section, _Finding
160
160
 
161
161
  #### Finding SumoLogic endpoint and collector code ####
162
162
 
163
- To find the values that you will apply the environment variables, `SUMO_LOGIC_ENDPOINT` and `SUMO_LOGIC_COLLECTOR_CODE`, in the SumoLogic Control Panel, goto: Manage > Collection, and get the source category
163
+ To find the values that you will apply the environment variables, `SUMO_LOGIC_ENDPOINT` and `SUMO_LOGIC_COLLECTOR_CODE`, in the SumoLogic Control Panel, go to: Manage > Collection, and get the source category.
164
164
 
165
165
  ![Screen Shot 2016-10-10 at 2.03.31 PM.png](https://bitbucket.org/repo/xbXGRo/images/3258406172-Screen%20Shot%202016-10-10%20at%202.03.31%20PM.png)
166
166
 
@@ -194,11 +194,11 @@ Formatting console logs is left to winston, except that some stackTrace info is
194
194
 
195
195
  Formatting of SumoLogic logs is handled by this module in the following ways:
196
196
 
197
- * only the first argument is used as the message
198
- * one metadata object can be passed as a parameter; its properties are included in the log entry
199
- * structured stackTrace info is added to every log except when NO_STACK is set to 'yes'
200
- * if the last parameter is a string it will be considered as a `correlationId`
201
- * if the last parameter is a plain object **and** there is already an earlier metadata object, its properties are merged into the log entry at the top level (alongside `serverType`/`serverId`) — this is the _extra fields_ feature
197
+ * only the first argument is used as the message,
198
+ * one metadata object can be passed as a parameter; its properties are included in the log entry,
199
+ * structured stackTrace info is added to every log except when NO_STACK is set to 'yes',
200
+ * if the last parameter is a string it will be considered as a `correlationId`,
201
+ * if the last parameter is a plain object **and** there is already an earlier metadata object, its properties are merged into the log entry at the top level (alongside `serverType`/`serverId`) — this is the _extra fields_ feature.
202
202
 
203
203
 
204
204
  ### Logging Examples ###
@@ -232,7 +232,7 @@ The log() method is also supported, and adds a level parameter in position 1.
232
232
 
233
233
  Tailing allows you to scroll through log output in real time. You can trail log data in SumoLogic.
234
234
 
235
- To trail in SumoLogic go to Search > Live Tail in the SumoLogic user interface and enter `sourceCategory=<source category>` in the search bar, where `<source category>` is the log you want to trail. Then click, Run
235
+ To trail in SumoLogic go to Search > Live Tail in the SumoLogic user interface and enter `sourceCategory=<source category>` in the search bar, where `<source category>` is the log you want to trail. Then click, Run.
236
236
 
237
237
  |Example|
238
238
  |---|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/sumologic-winston-logger",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Log wrapper for sumo, s3, kinesis and winston",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -9,9 +9,9 @@
9
9
  "node": ">=24.0.0"
10
10
  },
11
11
  "scripts": {
12
- "lint": "eslint . --no-error-on-unmatched-pattern",
13
12
  "docs": "jsdoc2md --template docs/README.hbs configuration/config.js > README.md",
14
- "test": "mocha --reporter mochawesome --bail --exit --check-leaks --global serverType,serverId test/logger.spec.js test/loggerProd.spec.js",
13
+ "lint": "eslint . --no-error-on-unmatched-pattern",
14
+ "test": "mocha --reporter mochawesome --bail --exit --check-leaks --global serverType,serverId test/",
15
15
  "test-ci": "c8 --reporter=lcov --reporter=text npm test",
16
16
  "prepublishOnly": "npm run docs && npm run lint && npm run test-ci",
17
17
  "commit-ready": "npm run docs && npm run lint && npm run test-ci"
@@ -31,19 +31,19 @@
31
31
  "url": "https://bitbucket.org/mimiktech/sumologic-winston-logger"
32
32
  },
33
33
  "dependencies": {
34
- "@mimik/lib-filters": "^2.0.7",
35
- "@aws-sdk/client-s3": "3.1006.0",
36
- "@aws-sdk/client-kinesis": "3.1006.0",
37
- "@smithy/node-http-handler": "4.4.14",
34
+ "@mimik/lib-filters": "^2.0.8",
35
+ "@aws-sdk/client-s3": "3.1008.0",
36
+ "@aws-sdk/client-kinesis": "3.1008.0",
37
+ "@smithy/node-http-handler": "4.4.16",
38
38
  "axios": "1.13.6",
39
39
  "winston": "3.19.0",
40
40
  "winston-transport": "4.9.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/js": "9.39.4",
44
- "@mimik/eslint-plugin-document-env": "^2.0.8",
45
- "@mimik/eslint-plugin-logger": "^1.0.2",
46
- "@mimik/request-helper": "^2.0.5",
44
+ "@mimik/eslint-plugin-document-env": "^2.0.9",
45
+ "@mimik/eslint-plugin-logger": "^1.0.3",
46
+ "@mimik/request-helper": "^2.0.6",
47
47
  "@stylistic/eslint-plugin": "5.10.0",
48
48
  "aws-sdk-client-mock": "4.1.0",
49
49
  "c8": "11.0.0",