Open kzinevych opened 6 years ago
I am also facing similar issue with winston 3.x
and winston-papertrail 1.0.5
.
Papertrail sends logs as message = message-string + stringified JSON object
.
This reduces log readability and creates distraction.
If I downgrade to winston 2.2.0
then winston-papertrail 1.0.5
send proper logs without stringified JSON object.
Please share updates on this issue.
Guy can someone tell me. Had update the winston-papertrail to version 1.0.5 (winston version 3.0.0), and saw interesting thing. 2nd parameter 'message' that came in logFormat, formated like this, example: 'Some message { message: 'Some message', level: 'info' }' Should it be like this, or not? If yes, how to work with it? After investigation I found in file /lib/winston-papertrail.js, line:325 (var output = msg;) That set this duplication msg.
`var output = msg;
How logs should looks like? How work with colorize? It doesn't work for me. Maybe someone can share best practice.
Would be apriciate for any help.