@mimik/sumologic-winston-logger 2.2.1 → 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.
- package/README.md +7 -7
- package/package.json +4 -4
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,
|
|
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
|

|
|
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.
|
|
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",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@mimik/lib-filters": "^2.0.8",
|
|
35
|
-
"@aws-sdk/client-s3": "3.
|
|
36
|
-
"@aws-sdk/client-kinesis": "3.
|
|
37
|
-
"@smithy/node-http-handler": "4.4.
|
|
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"
|