react-native-logs new features #106
Replies: 2 comments 2 replies
-
|
In regard to modularity, what if the preset transports were not reexported from the module entry? So you'd had to import it using something like this: import sentryTransport from 'react-native-logs/transport/sentryTransport'This way, as more transports are implemented, the bundle only includes the transports used. (with the default one always being included, of course) It's a minor performance improvement which introduces a breaking change. Maybe with new bundle optimizations in Metro, React Native and Expo, this won't be necessary. However it's how I've seen preset but optional features being exposed in some libraries. |
Beta Was this translation helpful? Give feedback.
-
|
A feature that I think would be nice to have the option to enable logs at specific logging levels in the console transport. For example, the stack traces are useful in error and warn levels during development. I don't think I can see two ways this could be implemented:
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
I’m opening this discussion to talk about the future versions of react-native-logs, while always maintaining the focus of the package, which is simplicity, modularity, and platform independence. What features do you think would be useful to add and/or improve?
Beta Was this translation helpful? Give feedback.
All reactions