Eliza Weisman 28c5c5f6e0
log: fix cyclic dependency (#315)
Currently, the `tracing-log` crate uses the `CurrentSpan` utility in
`tracing-subscriber`. However, now that `tracing-fmt` has been moved
into `tracing-subscriber`, its `log` feature (which depends on
`tracing-log`) creates a cyclic dependency between these two crates.

This branch solves the cyclic dependency by removing the
`tracing-subscriber` dependency from `tracing-log`. Instead, the
current span is tracked manually.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-03 12:19:53 -07:00

35 lines
976 B
TOML

[package]
name = "tracing-env-logger"
version = "0.1.0"
authors = ["Eliza Weisman <eliza@buoyant.io>"]
repository = "https://github.com/tokio-rs/tracing"
homepage = "https://tokio.rs"
documentation = "https://docs.rs/tracing-env-logger/0.1.0/tracing_env_logger"
description = """
A tracing subscriber that logs trace events using the `env_logger` crate
"""
categories = [
"development-tools::debugging",
"asynchronous",
]
keywords = ["logging", "tracing"]
license = "MIT"
edition = "2018"
[dependencies]
tracing-log = { version = "0.0.1-alpha.2", path = "../tracing-log" }
env_logger = "0.5"
log = "0.4"
[dev-dependencies]
tracing = "0.1"
tracing-futures = { path = "../tracing-futures" }
tracing-subscriber = { version = "0.0.1-alpha.3", path = "../tracing-subscriber" }
hyper = "0.12.25"
futures = "0.1"
tokio = "0.1.22"
[badges]
azure-devops = { project = "tracing/tracing", pipeline = "tokio-rs.tracing", build = "1" }
maintenance = { status = "experimental" }