We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys, first of all, thanks for the amazing tauri v2 works.
It seems, the logfile is not set when running on a mobile platform.
plugins/log/src/lib.rs:
#[cfg(mobile)] TargetKind::LogDir { .. } => continue, #[cfg(desktop)] TargetKind::LogDir { file_name } => { let path = app_handle.path().app_log_dir().unwrap(); if !path.exists() { fs::create_dir_all(&path).unwrap(); } fern::log_file(get_log_file_path( &path, file_name.as_deref().unwrap_or(app_name), &self.rotation_strategy, &self.timezone_strategy, self.max_file_size, )?)? .into() }
From my understanding a #[cfg(any(desktop, mobile)] would be sufficient as the app_log_dir() function is already implemented for mobile.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys, first of all, thanks for the amazing tauri v2 works.
It seems, the logfile is not set when running on a mobile platform.
plugins/log/src/lib.rs:
From my understanding a #[cfg(any(desktop, mobile)] would be sufficient as the app_log_dir() function is already implemented for mobile.
The text was updated successfully, but these errors were encountered: