nodejs-dashboard icon indicating copy to clipboard operation
nodejs-dashboard copied to clipboard

Can I pipe the Stdout?

Open mrsimonemms opened this issue 8 years ago • 2 comments

<praise>Splendid package, well done</praise>

My application uses Bunyan for logging. In order to make the output more readable, my original command is node ./app.js | bunyan.

When I change my command to nodejs-dashboard node ./app.js | bunyan, I just get the message "Waiting for client connection on 9838..." and nothing else.

If I get rid of the | bunyan pipe, it works fine (but with the stdout an unreadable mess).

Any ideas how to get my output piped?

mrsimonemms avatar Oct 16 '16 09:10 mrsimonemms

Hi @riggerthegeek not sure that this setup will work in its current incarnation. You might be able to use bunyan -p option with some bash hackery and launch bunyan via the dashboard.

jasonwilson avatar Oct 17 '16 17:10 jasonwilson

Yeah, that might work. It's a little bit coupled to Bunyan though.

It might be a useful addition in future to be able to pipe the output

mrsimonemms avatar Oct 18 '16 07:10 mrsimonemms