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
Describe the bug
The json type is returning the full logObject regardless of the values provided to be hidden/displayed in the settings.
To Reproduce
Steps to reproduce the behavior:
Create new Logger with settings param {type: 'json'}
Pass a string to Logger instance to see the output.
Expected behavior
The log output when formatted as json should not display the values that are supposed to be hidden by default. Ie. hostname, instancename.
Node.js Version
14.16.0
OS incl. Version
macOS 10.15.7
The text was updated successfully, but these errors were encountered:
There is a new, completely rewritten version (4.0) which handles it completely different and should solve this out of the box. In addition, you can also overwrite every step of the log process. Give it a go and let me know if that solves your problem:
npm i tslog@next
and run it with node --enable-source-maps or for TypeScript node --enable-source-maps --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm
Describe the bug
The json type is returning the full logObject regardless of the values provided to be hidden/displayed in the settings.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The log output when formatted as json should not display the values that are supposed to be hidden by default. Ie. hostname, instancename.
Node.js Version
14.16.0
OS incl. Version
macOS 10.15.7
The text was updated successfully, but these errors were encountered: