Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fmt): Fix passing of WriteStyle when using Target::Pipe #302

Merged
merged 1 commit into from Jan 27, 2024

Conversation

Bobo1239
Copy link
Contributor

Seems like this was overlooked in #298.

Test program:

fn main() {
    env_logger::builder()
        .target(env_logger::Target::Pipe(Box::new(std::io::stdout())))
        .write_style(env_logger::WriteStyle::Always)
        .init();
    log::error!("ASD");
}

Fixes #274.

@epage epage merged commit 489ba18 into rust-cli:main Jan 27, 2024
13 checks passed
@epage
Copy link
Contributor

epage commented Jan 27, 2024

Thanks for that and sorry I missed that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WriteStyle is ignored when used with Target::Pipe
2 participants