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

String substitutions do not work #60

Closed trajano closed 2 years ago

trajano commented 2 years ago

Using string substitutions being passed to the log does not work on consoleTransport

I presume it's because you're assembling the message and sending it out as one string.

alessandro-bottamedi commented 2 years ago

Yes, the only way to get the string subtitution to work is to create a custom transport and process the rawMsg... perhaps you could create a customTransport that directly calls console.log without processing the message.