slog icon indicating copy to clipboard operation
slog copied to clipboard

slog in a browser

Open wdanilo opened this issue 4 years ago • 2 comments

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? :)

wdanilo avatar Oct 03 '19 18:10 wdanilo

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.

dpc avatar Oct 03 '19 22:10 dpc

Would also like this.

iMplode-nZ avatar Jul 20 '21 18:07 iMplode-nZ