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

Support for max file size #18

Closed papadi closed 3 years ago

papadi commented 4 years ago

If I'm not mistaken, there is no support for setting the max file size of the log file. Is there a default one, or will the file grow indefinitely?

alessandro-bottamedi commented 4 years ago

No, for now there is no control on file size, to do this you should create a custom transport that includes fileTransport. But it's a good suggestion, I'll see if I can include this function in the next release.