use env_logger::{Builder, Target};
      fn main() {
        Builder::new()
        .target(Target::Stdout)
        .init();
        log::error!("This error has been printed to Stdout");
      }
      
      Rust language logo

      Log to stdout

      Codiga's Rust Recipes

      instead of stderr

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.