slog
slog copied to clipboard
slog in a browser
Hi! I would like to use slog in a browser in such a way, that I could output "compact" mode there using all the console goodies, like console.group
(so I could collapse and expand logs): https://developer.mozilla.org/en-US/docs/Web/API/Console/group
I've been looking at the slog_term::TermDecorator
but it seems we will rather not be able to reuse it here (or we will?).
Will such abilities be available in slog? :)
Will such abilities be available in slog? :)
If you or someone adds them. :)
Most of slog
is very portable and agnostic of everything. So I would imagine all it takes to get slog_term
to run in WASM or something like that is to give it something that implements io::Write
and translates the writes into whatever you want to output to.
Would also like this.