hyper_logger 0.2.2+2
hyper_logger: ^0.2.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+2 #
- Shrink the published archive from 1.1 MB to 168 KB. The README and docs now
reference the preview images by absolute GitHub URL, so pub.dev proxies them
from the repository and the PNGs no longer ship to every
pub get. The images themselves are back to full 2x resolution.
0.2.2+1 #
- Restore the README preview images on pub.dev. 0.2.2 excluded
assets/from the published archive.
0.2.2 #
- Compress assets & add .pubignore.
LogPrinterPresets.automatic,.human,.terminal, and.cinow forward the fullComposablePrintertuning surface —methodCount,errorMethodCount,excludePaths,showAsyncGaps, andsuppressTypeNames. Previously a preset only tookoutput, so tuning stack-trace depth or frame filtering meant abandoning the preset and composing the decorator list by hand. Onautomaticthe parameters reach theci/humanarms only; the cloud arms emit a rawstackTrace.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 #
-
RotatingFilePrinterrotation API redesigned. The singlerotationConfig: FileRotationConfig.…parameter is replaced by:rotations: List<FileRotation>— a list of rotation rules, each a trigger (FileRotation.size/.interval/.daily/.onStart) crossed with aCadence(continuous, checked on every write, oronStart, 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/intervalnow live on the rule; retention knobs moved here.FileRotationConfigis 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 freshserver.logper run.FileRetention.maxAge— delete rotated archives older than a given duration (age parsed from the archive's filename timestamp), pruned on each rotation alongsidemaxFiles.
0.1.0 #
- Initial public release.