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

Using react-native-logs in a regular 'react' web app? #86

Closed robertlight closed 10 months ago

robertlight commented 10 months ago

Can I use react-native-logs in a plain 'react' based web application?

If not, what suggestions are there for log4j-like logging frameworks that would work.

Many thanks,

DanielSRS commented 10 months ago

Yes you can. Despite the name, there is no React native specific code. It's a plain JavaScript library.

alessandro-bottamedi commented 10 months ago

Sure, the library is intentionally written without dependencies on any platform to work seamlessly with Expo and React Native Web. Therefore, it works perfectly across the entire JavaScript ecosystem. However, outside of React Native, there are also other very valid logging libraries. This is why the choice of this specific name.