Skip to content

Commit 384661f

Browse files
committed
chore: update document
1 parent 695cde9 commit 384661f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ async fn main() {
2929
.with_target_writer("*", new_writer(tokio::io::stdout()))
3030
.init();
3131

32+
// Or use the default:
33+
// structured_logger::init();
34+
3235
let kv = ContextLog {
3336
uid: "user123".to_string(),
3437
action: "upate_book".to_string(),

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
//! .with_target_writer("*", new_writer(tokio::io::stdout()))
4545
//! .init();
4646
//!
47+
//! // Or use the default:
48+
//! // structured_logger::init();
49+
//!
4750
//! let kv = ContextLog {
4851
//! uid: "user123".to_string(),
4952
//! action: "upate_book".to_string(),

0 commit comments

Comments
 (0)