mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
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:
committed by
GitHub
parent
f6622a3e34
commit
1a6627ee7d
6
.changes/default-log-level.md
Normal file
6
.changes/default-log-level.md
Normal 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`.
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user