hyper_logger 0.2.2 copy "hyper_logger: ^0.2.2" to clipboard
hyper_logger: ^0.2.2 copied to clipboard

Composable logging for Dart and Flutter: environment detection, scoped loggers, request-context propagation, file rotation, and cloud-ready JSON output for GCP, AWS, and Azure.

0.2.2 #

  • Compress assets & add .pubignore.
  • LogPrinterPresets.automatic, .human, .terminal, and .ci now forward the full ComposablePrinter tuning surface — methodCount, errorMethodCount, excludePaths, showAsyncGaps, and suppressTypeNames. Previously a preset only took output, so tuning stack-trace depth or frame filtering meant abandoning the preset and composing the decorator list by hand. On automatic the parameters reach the ci/human arms only; the cloud arms emit a raw stackTrace.toString() and have nothing to tune.
  • ComposablePrinter.defaultMethodCount — the default frame count (10), exposed so wrappers can mirror it instead of copying the literal.

0.2.1 #

  • Shorten the package description to satisfy pub.dev's character guideline.

0.2.0 #

Breaking #

  • RotatingFilePrinter rotation API redesigned. The single rotationConfig: FileRotationConfig.… parameter is replaced by:

    • rotations: List<FileRotation> — a list of rotation rules, each a trigger (FileRotation.size / .interval / .daily / .onStart) crossed with a Cadence (continuous, checked on every write, or onStart, checked once when the file opens). Rules compose as a union (the first to fire rotates), so size and time triggers can now be combined. An empty list (the default) appends forever.
    • retention: FileRetention? — shared archive policy (maxFiles, maxAge, compress). maxBytes/interval now live on the rule; retention knobs moved here.
    • FileRotationConfig is removed.

    Migration: FileRotationConfig.size(maxBytes: N, maxFiles: M, compress: c) → rotations: [FileRotation.size(N)], retention: FileRetention(maxFiles: M, compress: c); FileRotationConfig.interval(interval: D) → rotations: [FileRotation.interval(D)].

Added #

  • FileRotation.onStart({bool discard}) — rotate (archive) or discard the existing log on every process start, e.g. a fresh server.log per run.
  • FileRetention.maxAge — delete rotated archives older than a given duration (age parsed from the archive's filename timestamp), pruned on each rotation alongside maxFiles.

0.1.0 #

  • Initial public release.
0
likes
0
points
488
downloads

Publisher

verified publishersaad-ardati.dev

Weekly Downloads

Composable logging for Dart and Flutter: environment detection, scoped loggers, request-context propagation, file rotation, and cloud-ready JSON output for GCP, AWS, and Azure.

Repository (GitHub)
View/report issues

Topics

#logging #cloud #flutter #observability

License

unknown (license)

Dependencies

clock, logging, meta, path, stack_trace, universal_io, web

More

Packages that depend on hyper_logger