My NodeJS app is acting buggy and I want to properly log everything that is happening while it is being used.
I came across Bunyan and it looks great. Except, like all other "loggers" it simply prints to stdout
which makes it very hard for me to properly analyse what is going on.
Is there any way I can get Bunyan to always output to some file logs.json
for example?
You should log even if your app is not buggy. Anyway, did you actually read the documents? You use a stream:
Now to view the log: