Closed mrigankvallabh closed 1 year ago
I have a very simple log file with as below app.log
app.log
{"level":30,"time":"2023-06-19T04:01:56.478Z","pid":2484,"hostname":"YMLTITD2227","msg":77} {"level":30,"time":"2023-06-19T04:01:56.478Z","pid":2484,"hostname":"YMLTITD2227","msg":"42"}
Notice that first message is number 77, while the other is string 42. If I do cat app.log | npx pino-pretty, I get the below output
cat app.log | npx pino-pretty
[12:01:56.478] INFO (2484): [12:01:56.478] INFO (2484): 42
It does NOT display the numbers, but only the strings. I was hoping that pino-pretty should be able to interpret numbers as strings.
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
I have a very simple log file with as below
app.log
Notice that first message is number 77, while the other is string 42. If I do
cat app.log | npx pino-pretty
, I get the below outputIt does NOT display the numbers, but only the strings. I was hoping that pino-pretty should be able to interpret numbers as strings.