Releases: mowispace/react-native-logs
Releases · mowispace/react-native-logs
v 5.2.2
v 5.2.1
- Minor bugfix
v 5.2.0
- 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
- 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
- Fixed fileName in fileAsyncTranport
- In fileName now you can pass {date-today}
v 5.0.0
- 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
- enable() and disable() methods can now enable or disable extensions
v 4.0.0
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
v 3.0.4
v 3.0.3
- removed EncodingType reference on fileAsyncTransport