Skip to content

Releases: mowispace/react-native-logs

v 3.0.2

27 Jan 16:20
Compare
Choose a tag to compare
  • fixed web colors in console transport

v 3.0.1

27 Jan 16:12
Compare
Choose a tag to compare
  • fixed ansi colors in console transport

v 3.0.0

26 Jan 16:14
Compare
Choose a tag to compare

This new version introduces many changes, the log management has been modified to allow the creation of namespaced loggers and to simplify the creation of custom transports.
The creation of namespaced loggers is done via the "extend" function on the main logger. This makes it possible to enable or disable logging only for certain parts of the app. The extend function is for now only enabled at the first level, it is not possible to extend an already extended logger in order to avoid loops in the controls that would affect performance.

  • complete refactoring
  • added namespaced logs via extend function!
  • expofs support for file transport (beta)
  • sentry transport
  • logs concatenation on single line
  • bugfix

BREAKING CHANGES

To upgrade to version 3 you need to change the logger creation. The default transports have now been reduced, but they support the same functions as before but through options, e.g. to get asynchronous logs you can set the async:true option instead of importing a special transport.
Custom transports also need to change, they now receive a single "props" parameter containing everything you need, the message formatting has been moved out of the transport so you can just output it. It is still possible to format the logs at will. Please refer to the new documentation for details.

v 2.2.1

23 May 14:53
Compare
Choose a tag to compare
  • added "ansiColorConsoleSync" transport to color logs on terminal (and VScode terminal)

v 2.2.0

11 May 13:26
Compare
Choose a tag to compare
  • added log messages concatenation "log(msg1,msg2,etc...)"
  • added dataFormat transportOptions (thanks @baldur)
  • bugfix

v 2.1.2

14 Apr 15:28
Compare
Choose a tag to compare
  • fixed bug RNFS wrong require line (thanks @jbreuer95)

v. 2.1.1

09 Apr 07:09
Compare
Choose a tag to compare
  • added new options for preset transports (like optional path for file transport)
  • bugfix

v. 2.1.0

08 Apr 13:58
Compare
Choose a tag to compare
  • added possibility to pass options to transport with transportOptions property

v. 2.0.2

13 Mar 11:50
Compare
Choose a tag to compare
  • BugFix

v. 2.0.1

04 Mar 18:40
Compare
Choose a tag to compare
  • Remove transport export from main index module to avoid require errors