-
Notifications
You must be signed in to change notification settings - Fork 30
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
Filename/FilePath for rnFsFileAsync #4
Comments
Hi, i've just added the possibility to set transports options, as you can see in the docs now you can change the file name for the rnFsFileAsync (the transportOptions.loggerName property). |
@alessandro-bottamedi I'd say make the path optional, if provided use that path, otherwise default to RNFS.DocumentDirectoryPath? For the meantime I created my own customFsLog function which is called by my customLogger
We're using DocumentDirectoryPath as well
I'm fine if you don't add the path as it's pretty easy/straightforward to setup a custom fs log already as shown above. |
I added the option to set the path for rnFsFileAsync. |
Two options to customize file and folder are: fileName and filePath |
Hey there,
What would you think about slightly changing the rnFsFileAsync so that the filename/filepath is providable and not hardcoded?
Example usage:
An App where you can login and want to log per user and not per app.
The text was updated successfully, but these errors were encountered: