Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy committed Aug 1, 2024
1 parent 2b0b284 commit 4ea17ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rustdoc-args = ["--cfg", "docs"]

[features]
fastrace = ["dep:fastrace"]
file = ["dep:crossbeam-channel", "dep:parking_lot", "dep:time"]
rolling_file = ["dep:crossbeam-channel", "dep:parking_lot", "dep:time"]
json = ["dep:serde_json", "dep:serde"]
no-color = ["colored/no-color"]
opentelemetry = [
Expand Down
9 changes: 4 additions & 5 deletions examples/no_color_stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@

use log::LevelFilter;
use logforth::append;
use logforth::filter;
use logforth::layout;
use logforth::logger::Dispatch;
use logforth::logger::Logger;
use logforth::layout::TextLayout;
use logforth::Dispatch;
use logforth::Logger;

fn main() {
Logger::new()
.dispatch(
Dispatch::new()
.filter(LevelFilter::Trace)
.layout(layout::Text::default())
.layout(TextLayout::default())
.append(append::Stdout),
)
.apply()
Expand Down
2 changes: 1 addition & 1 deletion src/append/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::layout::Layout;
mod fastrace;
#[cfg(feature = "opentelemetry")]
mod opentelemetry;
#[cfg(feature = "file")]
#[cfg(feature = "rolling_file")]
pub mod rolling_file;
mod stdio;

Expand Down

0 comments on commit 4ea17ec

Please sign in to comment.