Closed hadisinaee closed 7 years ago
cat logs | pino
You will need to install pino globally for that. You can also use pino-colada. Il giorno mer 31 mag 2017 alle 15:44 James Sumners notifications@github.com ha scritto:
cat logs | pino
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pinojs/pino/issues/250#issuecomment-305190934, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL4yR8373i0bMq6hAzyf6NUPCMqPKMks5r_W7WgaJpZM4Nroza .
Thank you @jsumners @mcollina :+1: I tested the following and it worked. I think I don't need to install it globally:
cat logs | ./node_modules/pino/bin.js
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.
Hi :)
Is there any way to pretty print logs after they are saved into a file as JSON format? I mean, suppose we have the following log saved into file:
Then we can do something like the following:
and it will print in the way pretty prints?