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

Add formatFunc option #79

Closed chmac closed 10 months ago

chmac commented 1 year ago

After posting #78 I realised that implementing this is probably the quickest solution to our current issue. So here's my approach. I've only lightly tested it, I haven't added any tests, it's really just a quick and dirty hack to solve my immediate issue. But maybe it's helpful if you're interested in adding a similar option.

Feel free to reject this PR if it doesn't fit.

d0whc3r commented 1 year ago

Interesting approach, could this be merged? I'm having some problems logging a Map, it would be a good idea to parse it.

@onubo could you please check it?

alessandro-bottamedi commented 10 months ago

It's a good idea and implementation, I'll merge it now, thank you and sorry for the delay.