Skip to content

Log Directory Not Recognized After App Reinstallation #80

Open
@ELichto

Description

@ELichto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions