docs: fix log targets docs (#2602)

* docs: fix log targets docs

* replace(s)
pull/2611/head
Tony 2 months ago committed by GitHub
parent d88387ace6
commit 4cd625049d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -398,12 +398,11 @@ impl Builder {
self
}
/// Adds a collection of targets to the logger.
/// Replaces 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