docs: fix log targets docs

pull/2602/head
Tony 3 months ago
parent d1609913be
commit 1aa958e7bc
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -360,12 +360,11 @@ impl Builder {
self
}
/// Adds a collection of targets to the logger.
/// Replace the targets of the logger.
///
/// ```rust
/// use tauri_plugin_log::{Target, TargetKind, WEBVIEW_TARGET};
/// tauri_plugin_log::Builder::new()
/// .clear_targets()
/// .targets([
/// Target::new(TargetKind::Webview),
/// Target::new(TargetKind::LogDir { file_name: Some("webview".into()) }).filter(|metadata| metadata.target().starts_with(WEBVIEW_TARGET)),

Loading…
Cancel
Save