Closed denneulin closed 2 years ago
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
In node.js (tested in 14 and 16), logs do not contain the
msg
property when the first parameter isundefined
.The following code
logs the following content (hostname has been changed 😉 ):
We can see the 4th log of both main logger and child logger does not have a
msg
property whereas it is ok when the first parameter isnull
.However, it seems to be ok in the browser. Tested here : https://codesandbox.io/s/js-playground-forked-qsnm99?file=/src/index.js