paw 0.0.4
paw: ^0.0.4 copied to clipboard
Small, organised and customizable logger for your flutter and dart apps.
0.0.1 #
Initial release of Paw library
infoto log informational messageswarnto log warning messagesdebugto log various data objectserrorto log errors with message with optional error and stacktrace
0.0.2 #
0.0.3 #
Major Changes and Improvements:
- Introduced Non-Singleton Paw Class: The
Pawclass is no longer a singleton. Users can now create separate instances ofPawfor different parts of their application or in different libraries, thus avoiding the issues caused by shared instances. - Enhanced PawInterface for Custom Logger Implementations: The
PawInterfacehas been introduced to provide more flexibility. Users can extend this interface to create custom loggers, allowing for more advanced and tailored logging solutions.
Breaking Changes:
-
Removal of Paw.init() Singleton Initialization:
- The
Paw.init()method, which was previously used to initialize a singleton instance ofPaw, has been removed. - Users should now create instances of
Pawusing its constructor, which allows for independent logger instances.
- The
-
Updated Usage Pattern:
- The way
Pawis used in the application has changed. Instead of accessing a singleton instance, users should create and manage their own instances ofPaw. - This change might require refactoring in existing codebases where
Paw.init()was used.
- The way
Migration Guide:
-
Replacing Singleton Usage:
- Wherever
Paw.init()was used, replace it withPaw()constructor to create a new instance. - Ensure that each part of the application or library that requires logging has its own
Pawinstance.
- Wherever
-
Adopting
PawInterface:- For advanced logging needs, extend
PawInterfaceto create a custom logger. - Implement the required methods and add custom functionality as needed.
- For advanced logging needs, extend
For more details refer here
0.0.4 #
- Expanded
AnsiColorswith new colors and introduced the custom function to allow users to create their own ANSI foreground and background colors. - Improved test coverage with additional unit tests.
- Introduced themes to style Paw logs, including a Dark and a Light theme to choose from, along with the
ability to create custom themes using
PawCustomThemewith custom colors using RGB values. - Updated docs for the new features