Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency logger to v2 #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 26, 2023

This PR contains the following updates:

Package Type Update Change
logger dependencies major ^1.1.0 -> ^2.0.0

Release Notes

SourceHorizon/logger (logger)

v2.4.0

  • Added pub.dev topics. Thanks to
    @​jonasfj (#​74).
  • PrettyPrinter: Added dateTimeFormat option (backwards-compatible with printTime).
    Fixes #​80.

v2.3.0

v2.2.0

  • Added AdvancedFileOutput. Thanks to
    @​pyciko (#​65).
  • Added missing acknowledgments in README.

v2.1.0

  • Improved README explanation about debug mode. Thanks to
    @​gkuga (#​57).
  • Added web safe export. Fixes #​58.
  • Added logger.init to optionally await any async init() methods.
    Fixes #​61.

v2.0.2+1

v2.0.2

v2.0.1

  • Updated README to reflect v2.0.0 log signature change.

v2.0.0

  • Fixed supported platforms list.
  • Removed reference to outdated logger_flutter project.
    Thanks to @​yangsfang (#​32).
  • Added override capability for logger defaults.
    Thanks to @​yangsfang (#​34).
  • Level.verbose, Level.wtf and Level.nothing have been deprecated and are replaced
    by Level.trace, Level.fatal and Level.off.
    Additionally Level.all has been added.
  • PrettyPrinter: Added levelColors and levelEmojis as constructor parameter.
Breaking changes
  • log signature has been changed to closer match dart's developer log function and allow for
    future
    optional parameters.

    Additionally, time has been added as an optional named parameter to support providing custom
    timestamps for LogEvents instead of DateTime.now().

Migration:
- Before:
  ```dart
  logger.e("An error occurred!", error, stackTrace);
  ```
- After:
  ```dart
  logger.e("An error occurred!", error: error, stackTrace: stackTrace);
  ```
  • init and close methods of LogFilter, LogOutput and LogPrinter are now async along
    with Logger.close().
    (Fixes FileOutput)
  • LogListeners are now called on every LogEvent independent of the filter.
  • PrettyPrinter: includeBox is now private.
  • PrettyPrinter: errorMethodCount is now only considered if an error has been provided.
    Otherwise methodCount is used.
  • PrettyPrinter: Static levelColors and levelEmojis have been renamed to defaultLevelColors
    and defaultLevelEmojis and are used as fallback for their respective constructor parameters.
  • Levels are now sorted by their respective value instead of the enum index (Order didn't change).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants