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

Log Directory Not Recognized After App Reinstallation #80

Open
ELichto opened this issue Jan 11, 2025 · 1 comment
Open

Log Directory Not Recognized After App Reinstallation #80

ELichto opened this issue Jan 11, 2025 · 1 comment

Comments

@ELichto
Copy link

ELichto commented Jan 11, 2025

When setting a custom logDirectory, such as /storage/emulated/0/Download/logs/, the library successfully writes logs to the specified directory. However, if the app is uninstalled and then reinstalled, the library fails to recognize the previously set logDirectory. Calling getLogFilePaths() after reinstallation returns an empty array, even though the log files still exist in the directory.

Steps to Reproduce:
1. Configure react-native-file-logger with a custom logDirectory, for example: /storage/emulated/0/Download/logs/.
2. Write logs and verify that log files are created in the specified directory.
3. Uninstall the app.
4. Reinstall the app.
5. the app fails to write logs... calling getLogFilePaths return an empty array.
Edit: Tested only on android

@FlorinPopaPersonal
Copy link

I'm having the same issue

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

2 participants