contextual 1.1.0 copy "contextual: ^1.1.0" to clipboard
contextual: ^1.1.0 copied to clipboard

A structured logging library for Dart with support for multiple output channels, customizable formatting, context management, and middleware processing.

1.1.0 #

Breaking Changes #

  • Renamed LogLevel to Level for more intuitive and concise naming.
  • Renamed addDriver(...) to addChannel(...) to emphasize the concept of channels as individual logging destinations.
  • Refactored the package structure into a Dart workspace, moving source files under a contextual/ folder. If you import files directly, please update your references to the new file paths.

New Features #

  • Per-Channel Formatters: You can now assign a unique formatter to each logging channel.
  • Channel-Specific Middleware: Middlewares can be applied specifically to a channel without affecting others.
  • Null Formatter (NullLogFormatter): A new formatter that emits an empty string, essentially discarding message content.

Enhancements #

  • Improved Logger Interface: Replaced string-based log levels with the Level enum for type safety and cleaner API usage.
  • Expanded Formatters: Bundled built-in formatters (plain, json, pretty, raw, null) and made them easily discoverable.
  • Refined Sink Logic: Sink-based logging is more efficient, with clearer batch and flush operations.

Fixes #

  • Cleaned Up old file paths and examples, ensuring they reflect the new structure.
  • Consistent Imports: Standardized internal imports to prevent confusion in IDEs and package managers.

1.0.0 #

  • Initial version.
7
likes
150
points
36
downloads

Publisher

verified publisherglenfordwilliams.com

Weekly Downloads

2024.05.28 - 2025.04.22

A structured logging library for Dart with support for multiple output channels, customizable formatting, context management, and middleware processing.

Homepage
Repository (GitHub)
View/report issues

Topics

#logging

Documentation

API reference

License

MIT (license)

Dependencies

ansicolor, intl, universal_io

More

Packages that depend on contextual