feat(cli): set default log level when adding the log plugin (#14122)

* feat(cli): set default log level when adding the log plugin

needs https://github.com/tauri-apps/plugins-workspace/pull/2965

ref #14075

* Update crates/tauri-cli/src/add.rs
This commit is contained in:
Lucas Fernandes Nogueira
2025-09-01 13:55:59 -03:00
committed by GitHub
parent f6622a3e34
commit 1a6627ee7d
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@tauri-apps/cli": patch:enhance
"tauri-cli": patch:enhance
---
Set a default log level filter when running `tauri add log`.

View File

@@ -132,6 +132,8 @@ pub fn run(options: Options) -> Result<()> {
"Builder::new(todo!()).build()"
} else if plugin == "single-instance" {
"init(|app, args, cwd| {})"
} else if plugin == "log" {
"Builder::new().level(tauri_plugin_log::log::LevelFilter::Info).build()"
} else if metadata.builder {
"Builder::new().build()"
} else {