Skip to content

Commit 276cc51

Browse files
committed
feat(cli): set default log level when adding the log plugin
needs tauri-apps/plugins-workspace#2965 ref #14075
1 parent 7db7142 commit 276cc51

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/default-log-level.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@tauri-apps/cli": patch:enhance
3+
"tauri-cli": patch:enhance
4+
---
5+
6+
Set a default log level filter when running `tauri add log`.

crates/tauri-cli/src/add.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ pub fn run(options: Options) -> Result<()> {
132132
"Builder::new(todo!()).build()"
133133
} else if plugin == "single-instance" {
134134
"init(|app, args, cwd| {})"
135+
} else if plugin == "log" {
136+
"Builder::new().level(tauri_plugin_log::log::LevelFilter::Debug).build()"
135137
} else if metadata.builder {
136138
"Builder::new().build()"
137139
} else {

0 commit comments

Comments
 (0)