Skip to content

Releases: mowispace/react-native-logs

v 5.5.0

07 Sep 07:05

Choose a tag to compare

  • Add extension on Crashlytics errors (as fileName)

v 5.4.0

06 Sep 16:01

Choose a tag to compare

  • Fix Readme (issue #115)
  • Fix Sentry compatibility (issue #118)
  • Fix Crashlytics error report (issue #110)
  • Crashlytics: a log is only recorded as an error if its level matches a level defined in the errorLevels option
  • Improve object serialization logic
  • Change FS packages type to any (issue #112)
  • Minor bugfix

v 5.2.2

21 Oct 06:48

Choose a tag to compare

  • Reverting to the old merge config function

v 5.2.1

18 Oct 19:20

Choose a tag to compare

  • Minor bugfix

v 5.2.0

17 Oct 12:24

Choose a tag to compare

  • Ensures JSON.stringify print nested objects correctly (issue #97)
  • Only merge non undefined config values (pr #105 by @SYoder1)
  • Correct README for Sentry logging (pr #104 by @ssorallen)
  • Add crashlytics transport (pr #91 by @chad-aijinet)
  • Added fileNameDateType option to the file transport for selecting the date format
  • Minor bugfix

v 5.1.0

26 Jan 19:41

Choose a tag to compare

  • Ensures JSON.stringify correctly (Thanks @iago-f-s-e)
  • Added formatFunc option (Thanks @chmac)
  • Added ability to set errorLevels on sentry transport
  • Correct format function type name in default stringify func
  • Added the confg option fixedExtLvlLength, allowing for uniform extension and level lengths by adding spaces, ensuring aligned logs
  • Minor bugfix

v 5.0.1

04 Jul 15:32

Choose a tag to compare

  • Fixed fileName in fileAsyncTranport
  • In fileName now you can pass {date-today}

v 5.0.0

30 Jun 13:53

Choose a tag to compare

  • Simplified init configuration (thanks to @harjot1singh)
  • Added levels typing
  • Customizable stringify function
  • Transport config option now accept array of transports
  • fileAsyncTransport can be configured to create a new file everyday
  • customizable console.log function in consoleTrasport
  • Added patchConsole method
  • dateFormat now accept a custom function

v 4.0.1

17 Jan 07:27

Choose a tag to compare

  • enable() and disable() methods can now enable or disable extensions

v 4.0.0

04 Jan 21:15

Choose a tag to compare

In this new major update many of the features requested in the previous issues have been fixed, introduced or improved:

  • reversed the extension mechanism, now if they are not specified, they will all be displayed
  • added the ability to choose the colors of the levels for the consoleTransport
  • added the ability to choose the colors of extensions in consoleTransport
  • added a transport that prints logs with the native console methods (log, info, error, etc ...)
  • fixed type exports
  • minor bugfix

BREAKING CHANGES

  • from this version if no extensions are specified in the configuration then all are printed, otherwise only the specified ones
  • the colors option for the consoleTransport must now be set with the desired colors for each level (see the readme), if not set the logs will not be colored
  • removed css web color support (latest chrome versions support ansi codes)
  • enable() and disable() methods can now only enable or disable the whole logger