Skip to content

Commit

Permalink
rough notes of WIP, will update as they are completed
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-dulic-bloxico committed Apr 6, 2021
1 parent c4605aa commit c92bf20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jormungandr/src/settings/logging.rs
Expand Up @@ -135,6 +135,19 @@ impl Layer<BoxedSubscriber> for BoxedSubscriber {}

impl LogSettings {
pub fn init_log(self) -> Result<(Vec<WorkerGuard>, LogInfoMsg), Error> {
// WIP: Replacing this code
//
// * Use tracing_subscriber::registry::Registry instead of
// boxing subscribers
// * Create specific layer types for each output format, implement
// ````
// impl<S> tracing_subscriber::Layer<S> for OutputLayer
// where
// S: Subscriber + for<'span> LookupSpan<'span>
// ```
// * expand code from LogSettingsEntry::to_subscriber, to remove
// * implement uniform process of composing Layer and Subscriber types
// for each output format
use tracing_subscriber::prelude::*;
let mut guards = Vec::new();
let mut layers: Vec<Layered<_, BoxedSubscriber>> = Vec::new();
Expand Down

0 comments on commit c92bf20

Please sign in to comment.