-
Notifications
You must be signed in to change notification settings - Fork 410
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
Avoid the need to pass &Logger
internally everywhere
#425
Labels
Comments
I would be in favor of this since we aren't even using structured logging, just plain old unstructured messages. |
alexcrichton
added a commit
to alexcrichton/wasm-pack
that referenced
this issue
Nov 5, 2018
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
alexcrichton
added a commit
to alexcrichton/wasm-pack
that referenced
this issue
Nov 5, 2018
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
Closed
alexcrichton
added a commit
to alexcrichton/wasm-pack
that referenced
this issue
Nov 5, 2018
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
alexcrichton
added a commit
to alexcrichton/wasm-pack
that referenced
this issue
Nov 7, 2018
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
alexcrichton
added a commit
to alexcrichton/wasm-pack
that referenced
this issue
Jan 10, 2019
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
ashleygwilliams
pushed a commit
that referenced
this issue
Jan 15, 2019
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 #425
ashleygwilliams
pushed a commit
that referenced
this issue
Feb 27, 2019
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 #425
ashleygwilliams
pushed a commit
that referenced
this issue
Feb 27, 2019
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 #425
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I've noticed when working on
wasm-pack
that&Logger
fromslog
is passed around in a lot of locations. This unfortunately makes refactoring painful, however, and is otherwise somewhat unergonomic to pass in so man locations.Perhaps the
log
crate or some other solution could be used where we still get to log everything but&Logger
doesn't have to be passed as an argument?The text was updated successfully, but these errors were encountered: