Middleware which checks if log masking should be skipped or not depending on data to be logged.
Returns true if masking should be skipped and false if masking should be done as skipMasking property.
In addition, allows to modify original log object, in case some custom processing is needed (e.g. mask one property, but not mask another. Or remove some unnecessary values from error object.).
Modified log object is returned as modifiedLog property and only 3 properties from it will override original log properties: message, details and error
Middleware which checks if log masking should be skipped or not depending on data to be logged. Returns true if masking should be skipped and false if masking should be done as skipMasking property. In addition, allows to modify original log object, in case some custom processing is needed (e.g. mask one property, but not mask another. Or remove some unnecessary values from error object.). Modified log object is returned as modifiedLog property and only 3 properties from it will override original log properties:
message
,details
anderror