TargetKind::LogDir not working (tauri_plugin_log) (tauri v2) #9532
-
I am trying to use Here is my config in tauri_plugin_log::Builder::new()
.targets([
Target::new(TargetKind::LogDir {
file_name: Some("main".into()),
}),
Target::new(TargetKind::Stdout),
Target::new(TargetKind::Webview),
])
.with_colors(ColoredLevelConfig::default())
.max_file_size(2 * 1024 /* 2MB */)
.level(LevelFilter::Info)
.rotation_strategy(RotationStrategy::KeepAll)
.build() Cargo.toml[dependencies]
tauri = { version = "2.0.0-beta", features = ["..."] }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = [
"colored",
] }
# ... The |
Beta Was this translation helpful? Give feedback.
Answered by
arashi-dev
Apr 21, 2024
Replies: 1 comment
-
Solved! My bad. Looks like in v2 the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arashi-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved! My bad. Looks like in v2 the
LogDir
points to%APPDATA%/Local
whereas the v1 points to%APPDATA%/Roaming
and nowhere that was written