PrettyPrint format function logging Symbols (level, message)
See original GitHub issueThis issue was previously reported on the main Winston issues list as #1308. Moving it here since the prettyPrint
function is actually a part of this repository.
I’m running the sample code under the Combining Formats section. I’ve created a brand new Node project, and Winston is the only package installed. I created a new index.js
file, and it only contains the code in the Combining Formats section. When I execute the code, I see the following log output:
{ level: 'info',
message: 'What time is the testing at?',
label: 'right meow!',
timestamp: '2018-05-10T00:52:02.906Z',
[Symbol(level)]: 'info' }
According to the text in the section, I should see:
{ level: 'info',
message: 'What time is the testing at?',
label: 'right meow!',
timestamp: '2018-05-10T00:52:02.906Z' }
According to my testing (using the latest version of Winston), the [Symbol(level)]: 'info'
part is coming from the prettyPrint
function invocation. I looked at the function itself, and I couldn’t immediately see why it logged the Symbol
portion. Is there a defect with the function or is it part of the configuration?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:23 (11 by maintainers)
Fixed at last on
master
, and will go out in the nextnpm
release. Thanks all!Note the fix is just for
prettyPrint
so if you see issues with other formatters feel free to open an issue or a similar PR to ^^When do you plan on releasing this?