"gzip" feature problem trying to implement rolling logger in Rust (programmatically)

26 views Asked by At

I've found this page. At the bottom of that page the author says he's giving a programmatic way of configuring so as to have a console logger component but also a rolling file logger component.

I'm having trouble with this line:

let roller = Box::new(
    FixedWindowRoller::builder()
        .base(roller_base)
        .build(roller_pattern, roller_count)
        .unwrap(),
 );

I get a panic with the following message: "thread 'main' panicked at 'called Result::unwrap() on an Err value: gzip compression requires the gzip feature'".

As a Rust newb I've so far got a vague notion about features. I thought they belonged to specific crates. But this message doesn't mention a crate. Can someone explain what I need to do?

0

There are 0 answers