Skip to content

Commit f807850

Browse files
committed
Change clear_format to reset_format
1 parent 6df2f41 commit f807850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/plugin/logging.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ tauri_plugin_log::Builder::new()
345345
### Applying a different format to targets
346346

347347
You can specify your own log format for specific targets by using the `format` method
348-
on `tauri_plugin_log::Target`. You may also wish to call `clear_format` on the builder
348+
on `tauri_plugin_log::Target`. You may also wish to call `reset_format` on the builder
349349
to remove the default formatter, which is applied to all targets:
350350

351351
```rust
352352
tauri_plugin_log::Builder::new()
353-
.clear_format()
353+
.reset_format()
354354
.targets([
355355
tauri_plugin_log::Target::new(
356356
tauri_plugin_log::TargetKind::Stdout

0 commit comments

Comments
 (0)