-
Notifications
You must be signed in to change notification settings - Fork 418
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
Replace slog
with log
#434
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think @ashleygwilliams should chime in on the whole concept before we merge this, though.
I am looking for a logging solution and were looking at this repository as an example of the use of Even though I noticed you are not using structured logging, I wonder if it doesn't make sense to look at it. Considering I may be completely mistaken here but would like to know your opinion about it. Mind to share your view on this? |
Hi @otavio, I think wasm-pack is used for development scene rather than embedded production. So, I think it’s ok not to use logger with embed feature. |
This commit replaces the `slog` family of crates used by `wasm-pack` with the `log` crate plus `env_logger`. This also means that by default `wasm-pack` also won't create a `wasm-pack.log` file in the current directory. Enabling logging will now be done through `RUST_LOG=wasm_pack` instead of `-v` flags. Closes rustwasm#425
I've rebased this on master, should be good to go now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for all this hard work!
AppVeyor fails on a test base on |
closing in favor of #491 |
This commit replaces the
slog
family of crates used bywasm-pack
with the
log
crate plusenv_logger
. This also means that by defaultwasm-pack
also won't create awasm-pack.log
file in the currentdirectory. Enabling logging will now be done through
RUST_LOG=wasm_pack
instead of-v
flags.Closes #425