Skip to content
New issue

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

Is it possible to define to the full path of where the logs are supposed to be? #40

Open
auxilim opened this issue Jul 5, 2022 · 1 comment

Comments

@auxilim
Copy link

auxilim commented Jul 5, 2022

Hey,

First of all, great work, I found flutter_logs is the best way to log thing in a flutter app.

My problem is that I store my app files in a complete different folder, and I would like to group every files in one location. I tried to set this option:

logsWriteDirectoryName: await (FileManagement.getLocalPath()),

But it just add the path to this "base" path, and I end up with this log location:

/storage/emulated/0/Android/data/project.package/files/data/user/0/project.package/app_flutter

Or a work around for me would be to have a way to know the actual path of where the logs are?

Thank you for help!

@umair13adil
Copy link
Owner

Hi,

Thank you for liking this plugin.

The plugin is actually forcing all log files to be only written to the internal storage directory, The logs will always be stored in your app's root folder & within the sub directory path that you have provided.

savePath = File(context.getExternalFilesDir(null), savePath).path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant