structured_log 0.2.0-dev.1 copy "structured_log: ^0.2.0-dev.1" to clipboard
structured_log: ^0.2.0-dev.1 copied to clipboard

Structured logging for Dart, inspired by Python's structlog. Log JSON with context binding.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased #

0.2.0-dev.1 - 2026-09-09 #

Added #

  • LogCorrelation and BoundLogger.withCorrelation() for typed correlation fields (sessionId, requestId, connectionGeneration, toolCallId, messageId, operationId), serialized under fixed snake_case keys and inherited/overridable through child loggers
  • LogSink and StructlogConfiguration(sinks: ...) for multi-output routing: one log entry can be delivered to multiple destinations with independent minLevel/categories filtering, runtime enable/disable via StructlogConfiguration.setSinkEnabled(), and per-sink error isolation

Changed #

  • Updated repository URL to https://github.com/pese-git/structured_log.git
  • Added FVM (Flutter Version Management) configuration
  • Added Melos scripts for development workflow (analyze, format, test, lint, build, example, clean)
  • Added .gitignore for Dart/FVM project
  • Removed unused imports from source files
  • Removed deprecated author field from pubspec.yaml
  • Formatted all source files with dart format

0.1.0 - 2026-04-27 #

Added #

  • Initial release of structured_log
  • BoundLogger with immutable bind() / unbind() context binding
  • Log levels: debug, info, warning, error, critical
  • Processors: dropNullValues, addTimestamp, addLogLevel, jsonRenderer, logfmtRenderer
  • Output formats: default JSON console, colored console, file, rotating file
  • Global configuration via StructlogConfiguration.configure()
  • Example usage in example/main.dart
  • Basic test suite
0
likes
0
points
273
downloads

Publisher

unverified uploader

Weekly Downloads

Structured logging for Dart, inspired by Python's structlog. Log JSON with context binding.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta

More

Packages that depend on structured_log