PackageTrack
Sign in Get early access

logger

Small, easy to use and extensible logger which prints beautiful logs.

2.7.0 2.6M downloads/mo #230 most downloaded on pub.dev SourceHorizon/logger

What this package is like to depend on

Last release 5 months ago

15 Mar 2026

Release timing varies

gaps range from 3 weeks to 7 months

Most releases are documented

notes for 34 of 38 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

40 releases · first in 2018

2 releases in the last 12 months

see the full history below

Release timeline

40 releases · Jan 2018 to Mar 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 40
  1. 2.7.0 15 Mar 2026
    Release notes

    What's Changed

    • feat: Use clock for getting default log event time by @alverone in #112

    New Contributors

    Full Changelog: v2.6.2...v2.7.0

    Open source →
    Release notes
    • Use clock for getting default log event time. Thanks to @alverone (#112).
    Open source →
  2. 2.6.2 05 Oct 2025
    Release notes

    What's Changed

    • PrettyPrinter: Fixed the showing of internal package:logger log lines in the stack trace on Flutter/Dart Web.
      Closes #102.
    • Lowered the meta package version requirement.

    Full Changelog: v2.6.1...v2.6.2

    Open source →
    Release notes
    • PrettyPrinter: Fixed the showing of internal package:logger log lines in the stack trace on Flutter/Dart Web. Closes #102.
    • Lowered the meta package version requirement.
    Open source →
  3. 2.6.1 21 Jul 2025
    Release notes

    What's Changed

    • AdvancedFileOutput: Fix race condition while flushing the buffer. Thanks to @sap1tz (#99).

    Full Changelog: v2.6.0...v2.6.1

    Open source →
    Release notes
    • AdvancedFileOutput: Fixed race condition while flushing the buffer (StateError). Closes #99, thanks to @sap1tz.
    Open source →
  4. 2.6.0 23 Jun 2025
    Release notes

    What's Changed

    • Added log level comparison operators by @busslina in #90
    • AdvancedFileOutput: Added fileHeader and fileFooter options. Closes #97.

    New Contributors

    Full Changelog: v2.5.0...v2.6.0

    Open source →
    Release notes
    • Added log level comparison operators. Thanks to @busslina (#90).
    • AdvancedFileOutput: Added fileHeader and fileFooter options. Closes #97.
    Open source →
  5. 2.5.0 16 Nov 2024
    Release notes

    What's Changed

    • AdvancedFileOutput: Added support for custom fileUpdateDuration. Thanks to @shlowdy (#86).
    • README: Fixed outdated LogOutput documentation.

    New Contributors

    Full Changelog: v2.4.0...v2.5.0

    Open source →
    Release notes
    • AdvancedFileOutput: Added support for custom fileUpdateDuration. Thanks to @shlowdy (#86).
    • README: Fixed outdated LogOutput documentation.
    Open source →
  6. 2.4.0 15 Jul 2024
    Release notes

    What's Changed

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

    New Contributors

    Full Changelog: v2.3.0...v2.4.0

    Open source →
    Release notes
    • Added pub.dev topics. Thanks to @jonasfj (#74).
    • PrettyPrinter: Added dateTimeFormat option (backwards-compatible with printTime). Fixes #80.
    Open source →
  7. 2.3.0 12 May 2024
    Release notes

    What's Changed

    • AdvancedFileOutput: Added file deletion option. Thanks to @lomby92 (#71).

    New Contributors

    Full Changelog: v2.2.0...v2.3.0

    Open source →
    Release notes
    • AdvancedFileOutput: Added file deletion option. Thanks to @lomby92 (#71).
    Open source →
  8. 2.2.0 23 Mar 2024
    Release notes

    What's Changed

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

    New Contributors

    Full Changelog: v2.1.0...v2.2.0

    Open source →
    Release notes
    • Added AdvancedFileOutput. Thanks to @pyciko (#65).
    • Added missing acknowledgments in README.
    Open source →
  9. 2.1.0 03 Mar 2024
    Release notes

    What's Changed

    • 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.

    New Contributors

    • @gkuga made their first contribution in #57

    Full Changelog: v2.0.2+1...v2.1.0

    Open source →
    Release notes
    • 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.
    Open source →
  10. 2.0.2 03 Sep 2023
    Release notes
    • Moved the default log level assignment to prevent weird lazy initialization bugs. Mitigates #38.
    Open source →
  11. 2.0.2+1 23 Sep 2023
    Release notes

    What's Changed

    Full Changelog: v2.0.2...v2.0.2+1

    Open source →
    Release notes
    • Meta update: Updated repository links to https://github.com/SourceHorizon/logger.
    Open source →
  12. 2.0.1 26 Jul 2023
    Release notes
    • Updated README to reflect v2.0.0 log signature change.
    Open source →
  13. 2.0.0 25 Jul 2023
    Release notes
    • 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:
        logger.e("An error occurred!", error, stackTrace);
        
      • After:
        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).

    Open source →
  14. 1.4.0 06 Jun 2023
    Release notes
    • Bumped upper SDK constraint to <4.0.0.
    • Added excludePaths to PrettyPrinter. Thanks to @Stitch-Taotao (#13).
    • Removed background color for Level.error and Level.wtf to improve readability.
    • Improved PrettyPrinter documentation.
    • Corrected README notice about ANSI colors.
    Open source →
  15. 1.3.0 12 Mar 2023
    Release notes
    • Fixed stackTrace count when using stackTraceBeginIndex. Addresses #114.
    • Added proper FileOutput stub. Addresses #94.
    • Added isClosed. Addresses #130.
    • Added time to LogEvent.
    • Added error handling to LogfmtPrinter.
    Open source →
  16. 1.2.2 23 Feb 2023
    Release notes
    • Fixed conditional LogOutput export. Credits to @ChristopheOosterlynck #4.
    Open source →
  17. 1.2.1 23 Feb 2023
    Release notes
    • Reverted ${this} interpolation and added linter ignore. #1
    Open source →
  18. 1.2.0 22 Feb 2023
    Release notes
    • Added origin LogEvent to OutputEvent. Addresses #133.
    • Re-added LogListener and OutputListener (Should restore compatibility with logger_flutter).
    • Replaced pedantic with lints.
    Open source →
  19. 1.1.0 26 Aug 2021
    Release notes
    • Enhance boxing control with PrettyPrinter. Credits to @timmaffett
    • Add trailing new line to FileOutput. Credits to @narumishi
    • Add functions as a log message. Credits to @smotastic
    Open source →
  20. 1.0.0 18 Mar 2021
    Release notes
    • Stable nullsafety
    Open source →
  21. 1.0.0-nullsafety.0 15 Dec 2020 pre-release
    Release notes
    • Convert to nullsafety. Credits to @DevNico
    Open source →
  22. 0.9.4 29 Sep 2020
    Release notes
    • Remove broken platform detection.
    Open source →
  23. 0.9.3 24 Sep 2020
    Release notes
    • Add MultiOutput. Credits to @gmpassos.
    • Handle browser Dart stacktraces in PrettyPrinter. Credits to @gmpassos.
    • Add platform detection. Credits to @gmpassos.
    • Catch output exceptions. Credits to @gmpassos.
    • Several documentation fixes. Credits to @gmpassos.
    Open source →
  24. 0.9.2 27 Jul 2020
    Release notes
    • Add PrefixPrinter. Credits to @tkutcher.
    • Add HybridPrinter. Credits to @tkutcher.
    Open source →
  25. 0.9.1 22 Apr 2020
    Release notes
    • Fix logging output for Flutter Web. Credits to @nateshmbhat and @Cocotus.
    Open source →
  26. 0.8.3 14 Jan 2020
    Release notes
    • Add LogfmtPrinter
    • Add colored output to SimplePrinter
    Open source →
  27. 0.8.2 31 Dec 2019
    Release notes
    • Add StreamOutput
    Open source →
  28. 0.8.1 24 Dec 2019
    Release notes
    • Deprecate callbacks
    Open source →
  29. 0.8.0 19 Dec 2019
    Release notes
    • Fix SimplePrinter showTime #12
    • Remove buffer field
    • Update library structure (thanks @marcgraub!)
    Open source →
  30. 0.7.0 05 Jul 2019
    Release notes
    • Added ProductionFilter, FileOutput, MemoryOutput, SimplePrinter
    • Breaking: Changed LogFilter, LogPrinter and LogOutput
    Open source →
  31. 0.7.0+1 05 Jul 2019
    Release notes
    • Fix pedantic
    Open source →
  32. 0.7.0+2 05 Jul 2019
    Release notes
    • Remove screenshot
    Open source →
  33. 0.6.0 05 Jun 2019
    Release notes
    • Added option to output timestamp
    • Added option to disable color
    • Added LogOutput
    • Behaviour change of LogPrinter
    • Remove dependency
    Open source →
  34. 0.5.0 04 Jun 2019
    Release notes
    • Added emojis
    • LogFilter is a class now
    Open source →
  35. 0.4.0 04 Jun 2019
    Release notes
    • First version of the new logger
    Open source →
  36. 0.3.1 31 Oct 2018

    Nothing published for this version

  37. 0.3.0 31 Oct 2018

    Nothing published for this version

  38. 0.2.0 06 Jul 2018

    Nothing published for this version

  39. 0.1.0 29 Jan 2018

    Nothing published for this version

  40. 0.1.0-alpha.1 22 Jan 2018 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive