Skip to main content

install

Function install 

Source
pub fn install() -> Result<LogCollector, InstallError>
Expand description

Installs a global tracing subscriber whose only output is a JSON-buffering layer that ships records to the cloud. The level filter starts at off; the cloud must push a SetLogLevel for any events to be captured.

Call exactly once at process start. For local console output in addition to cloud shipping, use layer and compose your own subscriber.