pub fn worker_task() -> Builder<InnerSender<impl Processor>, WorkerTask<PrettyPrinter>, NoTag>Available on crate feature
tokio only.Expand description
Begins the configuration of a ForestLayer subscriber that sends log trees
to a processing task for formatting and writing.
For full configuration options, see Builder.
For a high-level overview on usage, see the module-level documentation for more details.
ยงNote
The worker_task function defaults to setting the global subscriber, which is required
to detect logs in multithreading scenarios, but prevents setting other Subscribers
globally afterwards. This can be disabled via the set_global method.