You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The convenience methods are currently only available for the common node.js logging levels:
146
+
- error
147
+
- warn
148
+
- info
149
+
- verbose
150
+
- debug
151
+
- silly
152
+
135
153
### Sensitive data redaction
136
154
Version 3.0.0 and above implements a sensitive data redaction system, which deactivates the logging of sensitive fields. The field will contain 'redacted' instead of the original content.
137
155
@@ -145,6 +163,7 @@ In order to activate normal logging for all or some of these fields, you have to
145
163
|```LOG_REMOTE_USER: true```| activates the field remote_user |
146
164
|```LOG_REFERER: true```| activates the field referer |
147
165
166
+
148
167
This behavior matches with the corresponding mechanism in the [CF Java Logging Support](https://github.com/SAP/cf-java-logging-support/wiki/Overview#logging-sensitive-user-data) library.
149
168
150
169
### Dynamic log levels
@@ -266,7 +285,13 @@ Possibility to tailor logs to your needs, you can for example change the msg fie
266
285
```js
267
286
log.overrideNetworkField("msg", YOUR_CUSTOM_MSG);
268
287
```
269
-
This will replace the value of the previously empty msg field for network logs with YOUR_CUSTOM_MSG.
288
+
This will replace the value of the previously not existing msg field for network logs with YOUR_CUSTOM_MSG.
289
+
If the overridden field is already existing, it will be overridden by YOUR_CUSTOM_MSG for ALL subsequent network logs, until you
290
+
remove the override with:
291
+
```js
292
+
log.overrideNetworkField("msg", null);
293
+
```
294
+
If you use this override feature in conjunction with a log parser, make sure you will not violate any parsing rules.
0 commit comments