We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88387a commit 4cd6250Copy full SHA for 4cd6250
plugins/log/src/lib.rs
@@ -398,12 +398,11 @@ impl Builder {
398
self
399
}
400
401
- /// Adds a collection of targets to the logger.
+ /// Replaces the targets of the logger.
402
///
403
/// ```rust
404
/// use tauri_plugin_log::{Target, TargetKind, WEBVIEW_TARGET};
405
/// tauri_plugin_log::Builder::new()
406
- /// .clear_targets()
407
/// .targets([
408
/// Target::new(TargetKind::Webview),
409
/// Target::new(TargetKind::LogDir { file_name: Some("webview".into()) }).filter(|metadata| metadata.target().starts_with(WEBVIEW_TARGET)),
0 commit comments