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

fix(deps): update dependency logger to v2 #1

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 27, 2023

This PR contains the following updates:

Package Type Update Change
logger dependencies major ^1.0.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 - "after 9pm,before 6am" in timezone Africa/Johannesburg, 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.

@renovate renovate bot added the dependencies renovate bot related dependency upgrades label Jul 27, 2023
@renovate renovate bot enabled auto-merge (squash) July 27, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies renovate bot related dependency upgrades
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants