Cargo Features
[dependencies]
test-log = { version = "0.2.14", default-features = false, features = ["trace", "log", "unstable"] }
- default = log
-
The
log
feature is set by default whenevertest-log
is added without
somewhere in the dependency tree.default-features = false - trace = tracing-subscriber
-
TODO: use "dep:{tracing-subscriber,evn_logger}" once our MSRV is 1.60 or higher.
Enables trace of test-log-macros
- log default = env_logger
-
Enables log of test-log-macros
- unstable
-
Enable unstable features. These are generally exempt from any semantic versioning guarantees.
Enables unstable of test-log-macros
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- tracing-subscriber trace?
-
With env-filter and fmt
- env_logger log