react-native-file-logger icon indicating copy to clipboard operation
react-native-file-logger copied to clipboard

Android: allow native configuration

Open geovie opened this issue 1 year ago • 0 comments

This adds support for configuring the logger via a native Android.

While it is already possible to get the logger and log from native as explained in https://github.com/BeTomorrow/react-native-file-logger/issues/38#issuecomment-1130002280, the logs will only show up once the logger is configured via JS, which means logs from services/application which run before the JS will get lost.

By exposing the configure method to native Android it can be used to configure and use the logger before JS is initialized.

geovie avatar Aug 06 '24 09:08 geovie