-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple write streams? #26
Comments
At the moment it is not possible, but it will not be too hard to implement, it should be available on the upcoming release. Thank you for taking the time to suggest it : ) |
Thanks for a quick response! Any approximate ETA on the next release? :) |
I've came across the problem of multiple output streams as well today, here's what I'm using for now: const fs = require('fs')
const {PassThrough} = require('stream')
const stripAnsiStream = require('strip-ansi-stream')
const {Signale} = require('signale')
const ps = new PassThrough()
ps.pipe(process.stdout)
ps.pipe(stripAnsiStream).pipe(fs.createWriteStream('out.txt'))
const signale = new Signale({
stream: ps
}) It makes so that |
Hi,
Signale is awesome, but any idea how should I handle real life use cases such as logging stuff into console AND logging stuff into filesystem or websockets? It seems like a heavy limitation to have maximum one out stream available in config?
Thanks!
The text was updated successfully, but these errors were encountered: