plugins-workspace
plugins-workspace copied to clipboard
[log] LogTarget::Folder max_file_size does not affect
builder.plugin(
tauri_plugin_log::Builder::default()
.max_file_size(100)
.targets([LogTarget::Folder(&path)])
.rotation_strategy(RotationStrategy::KeepAll)
.level(LevelFilter::Debug)
.build(),
);
the log file becomes ~1500 KB but still write there - no *.bac file created
Any News?
+1. This still seems to be an issue. In my case, I notice that the log file size can grow beyond the configured max_file_size while the app is still running. However, when I close and re-open the app, it will rotate the log file if it has grown beyond the limit. Would it be possible to add live rotations?
This is happening to me too. Any updates on this?
+1.
tauri_plugin_log::Builder::new()
.target(tauri_plugin_log::Target::new(
tauri_plugin_log::TargetKind::LogDir { file_name: None },
))
.max_file_size(50* 1024)
.rotation_strategy(tauri_plugin_log::RotationStrategy::KeepAll)
.level(log::LevelFilter::Error)
.timezone_strategy(tauri_plugin_log::TimezoneStrategy::UseLocal)
.build()
I use log = "0.4.27" and "@tauri-apps/plugin-fs": "^2.2.0"