Closed cdupetit closed 6 years ago
Hello @mperdeck Did you plan any fix on this issue ? Thanks.
Sorry for the late reply.
I've changed the code so for objects it will set msg to "" instead of null. This will go out with the next release.
So far, I have been unable to find a specification of the interface of a Winston transport (apart from the existence of the level, msg, meta and callback fields).
Thanks.
Envoyé de mon iPhone
Le 27 janv. 2018 à 06:50, mperdeck notifications@github.com<mailto:notifications@github.com> a écrit :
Sorry for the late reply.
I've changed the code so for objects it will set msg to "" instead of null. This will go out with the next release.
So far, I have been unable to find a specification of the interface of a Winston transport (apart from the existence of the level, msg, meta and callback fields).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mperdeck/jsnlog.js/issues/59#issuecomment-360962639, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFxYUo4yq6oeIFdt-_viGZyCAZEh4rpsks5tOrkwgaJpZM4RIkNk.
Hello, In the function
stringifyLogObject()
whenactualLogObject
has a type ofobject
, ifactualLogObject
is not an instance ofRegExp
,String
,Number
orBoolean
, the function return a newStringifiedLogObject
with the first param set tonull
. This params correspond to themsg
member of the class and in some case it cause exception break.For example for winston.transport.email in the function log :
msg.split() cause an exception. My question : "Is this this normal for the msg param to be set to null ?" Best Regards. Cyril