Skip to content

Commit

Permalink
fix: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jan 1, 2024
1 parent f190f22 commit fcc5740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/guides/how-to/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Since I have seen some questions asking how logging can be implemented with a Fl
```rust
fn setup_the_logger() {
#[cfg(target_os = "android")]
android_logger::init_once(android_logger::Config::default());
android_logger::init_once(android_logger::Config::default().with_max_level(LevelFilter::Trace));

#[cfg(target_os = "ios")]
oslog::OsLogger::new("com.example.test").init().unwrap();
oslog::OsLogger::new("com.example.test").level_filter(LevelFilter::Trace).init().unwrap();
}
```

Expand Down

0 comments on commit fcc5740

Please sign in to comment.