mowispace / react-native-logs

Performance-aware simple logger for React-Native and Expo with namespaces, custom levels and custom transports (colored console, file writing, etc.)
MIT License
467 stars 33 forks source link

Queue? #77

Closed billnbell closed 10 months ago

billnbell commented 1 year ago

Does this have a queue? SO if the internet is down my custom logger would fire later?

alessandro-bottamedi commented 10 months ago

No, for now only the fileAsyncTransport has a queue function. Some packages like Sentry should handle it on their own. Perhaps in the future, it will be possible to implement a global queue function, but first, it is necessary to intercept the success of log sending in a custom transport, which is not easy.