pub fn try_init( layers: Vec<Box<dyn Layer<Registry> + Send + Sync + 'static>>, ) -> Result<()>
Creates a Registry, adds the given Layers to it, and attempts to set self as the global default subscriber in the current scope, returning an error if one is already set.
Registry
Layer
See try_init
try_init