pub fn layer(tag: &str) -> Result<Layer>
Expand description

Constructs a [layer::Layer] with the given tag.

// add the layer to an existing subscriber
let subscriber = {
    use tracing_subscriber::layer::SubscriberExt;
    subscriber.with(tracing_android::layer("com.example").unwrap())
}