Cargo Features

test-log = { version = "0.2.14", default-features = false, features = ["trace", "log", "unstable"] }
default = log

The log feature is set by default whenever test-log is added without default-features = false somewhere in the dependency tree.

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


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