Skip to content

Commit

Permalink
Add stdout/console logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Sep 10, 2024
1 parent 70c15b6 commit b116853
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/console/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use ftail::{drivers::console::ConsoleLogger, Ftail};

fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Hello, world!");

Ftail::new()
.add_driver(ConsoleLogger::new(), log::LevelFilter::Debug)
.add_driver(ConsoleLogger::new(), log::LevelFilter::Trace)
.init()?;

log::trace!("This is a trace message");
Expand Down

0 comments on commit b116853

Please sign in to comment.