Open BionanoDev opened 8 years ago
That was on windows 7 pro.
okay answered my own question. Feeling stupid.... Just needed to issue command like this:
bunyan Knickers.log
No need to feel stupid, in your failed attempt you asked Node to open your log file.
I followed the examples, but the examples were just piping the console output from the running program instead of from a file like I was attempting. Duh. Anyway feels like a nice library thanks.
Hello,
Just testing bunyan for the first time. Seeing errors from the CLI. I can see the logs generate properly and they look great, but when I run them through the cli for pretty printing I get an error.
Contents of the file look like this:
{"name":"Knickers","hostname":"BNM-227","pid":10200,"level":30,"msg":"hello world","time":"2016-02-22T22:49:13.318Z","src":{"file":"C:\\Projects\\bnm\\IrysView3\\Server\\Knickers\\App.js","line":26,"func":"App"},"v":0}
If I run this command I get this error:
node Knickers.log | bunyan -l info