A
A
Alex Wells2018-02-07 21:11:25
cmd/bat
Alex Wells, 2018-02-07 21:11:25

Redirect streams to parser?

Hello. I use a logger, pino, on the project. It sends unreadable text to the console, but at the same time provides a CLI utility: https://github.com/pinojs/pino/blob/master/docs/cli.md . They suggest that you first write the log to a file and then use it like this: cat log | pino -t. Obviously, this will not work on Windows, and I would like it in realtime.
Actually the question is: is it possible to redirect the stream from the node application to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wells, 2018-02-08
@Alex_Wells

A normal console (eg ConEmu) works perfectly with the pipe, as it should.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question