paw 0.0.4 copy "paw: ^0.0.4" to clipboard
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

  • info to log informational messages
  • warn to log warning messages
  • debug to log various data objects
  • error to log errors with message with optional error and stacktrace

0.0.2 #

  • Fixed issues to improve pub score, more details here
  • Improved documentation for better usability, more details here

0.0.3 #

Major Changes and Improvements:

  • Introduced Non-Singleton Paw Class: The Paw class is no longer a singleton. Users can now create separate instances of Paw for different parts of their application or in different libraries, thus avoiding the issues caused by shared instances.
  • Enhanced PawInterface for Custom Logger Implementations: The PawInterface has 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 of Paw, has been removed.
    • Users should now create instances of Paw using its constructor, which allows for independent logger instances.
  • Updated Usage Pattern:

    • The way Paw is used in the application has changed. Instead of accessing a singleton instance, users should create and manage their own instances of Paw.
    • This change might require refactoring in existing codebases where Paw.init() was used.

Migration Guide:

  1. Replacing Singleton Usage:

    • Wherever Paw.init() was used, replace it with Paw() constructor to create a new instance.
    • Ensure that each part of the application or library that requires logging has its own Paw instance.
  2. Adopting PawInterface:

    • For advanced logging needs, extend PawInterface to create a custom logger.
    • Implement the required methods and add custom functionality as needed.

For more details refer here

0.0.4 #

  • Expanded AnsiColors with 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 PawCustomTheme with custom colors using RGB values.
  • Updated docs for the new features
11
likes
160
pub points
29%
popularity

Publisher

unverified uploader

Small, organised and customizable logger for your flutter and dart apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on paw