mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
docs: fix log targets docs (#2602)
* docs: fix log targets docs * replace(s)
This commit is contained in:
@@ -398,12 +398,11 @@ impl Builder {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Adds a collection of targets to the logger.
|
/// Replaces the targets of the logger.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use tauri_plugin_log::{Target, TargetKind, WEBVIEW_TARGET};
|
/// use tauri_plugin_log::{Target, TargetKind, WEBVIEW_TARGET};
|
||||||
/// tauri_plugin_log::Builder::new()
|
/// tauri_plugin_log::Builder::new()
|
||||||
/// .clear_targets()
|
|
||||||
/// .targets([
|
/// .targets([
|
||||||
/// Target::new(TargetKind::Webview),
|
/// Target::new(TargetKind::Webview),
|
||||||
/// Target::new(TargetKind::LogDir { file_name: Some("webview".into()) }).filter(|metadata| metadata.target().starts_with(WEBVIEW_TARGET)),
|
/// Target::new(TargetKind::LogDir { file_name: Some("webview".into()) }).filter(|metadata| metadata.target().starts_with(WEBVIEW_TARGET)),
|
||||||
|
|||||||
Reference in New Issue
Block a user