Skip to content
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

slog in a browser #234

Open
wdanilo opened this issue Oct 3, 2019 · 2 comments
Open

slog in a browser #234

wdanilo opened this issue Oct 3, 2019 · 2 comments
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR.

Comments

@wdanilo
Copy link

wdanilo commented Oct 3, 2019

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

@dpc
Copy link
Collaborator

dpc commented Oct 3, 2019

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.

@iMplode-nZ
Copy link

Would also like this.

@Techcable Techcable added the C-feature-request Category: A feature request, i.e: not implemented / a PR. label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR.
Projects
None yet
Development

No branches or pull requests

4 participants