Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
//! This provides a way to set up rust tracing "layers".
pub fn initialize_tracing() {
use tracing_subscriber::prelude::*;
tracing_subscriber::registry()
// The application-services tracing-support library, which directs tracing from some crates
// back into the application for logging or other diagnostic purposes.
.with(tracing_support::simple_event_layer())
// More layers can be added by additional `.with(...)` statements.
// landed but does have a good example of what a more sophisticated subscriber needs.
.init();
}