Skip to content

DoumanAsh/tracing-fmt-smart-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracing-fmt-smart-writer

Crates.io Documentation Build

Smarter writer builder for tracing-subscriber's fmt module Version corresponds to major tracing-subscriber version.

Usage

use tracing_fmt_smart_writer::{WriterBuilder, tracing_subscriber};

tracing_subscriber::fmt::Subscriber::builder().with_writer(WriterBuilder::new())
                                              .init();

Platform selection

Android

Writes into logcat

Level map (tracing to logcat)
  • ERROR -> ERROR;
  • WARN -> WARN;
  • INFO -> INFO;
  • DEBUG -> DEBUG;
  • TRACE -> VERBOSE;

Web

Writes using console

Level map (tracing to console)
  • ERROR -> console.error;
  • WARN -> console.warn;
  • INFO -> console.info;
  • DEBUG -> console.debug;
  • TRACE -> console.debug;

Others

Writes into stdout

About

Better writer for tracing-subscriber's fmt module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages