purple_logger 2.1.5
purple_logger: ^2.1.5 copied to clipboard
Enterprise-grade structured logger for Dart and Flutter — provider pipeline, zone scopes, file rotation, OTel bridge.
2.1.5 #
2.1.4 #
2.1.3 #
2.0.0 #
- Complete rewrite — no dependency on
package:logging - Provider pipeline: multiple sinks running simultaneously
- Zone-based
LoggingScopefor async-safe contextual properties LogEventas single immutable allocation shared across all providersFilterRuleSetwith global + per-category + per-provider level controlLoggingBuilderfluent API with logger caching- Console, Debug, Memory, Null provider implementations
- SimpleFormatter (human-readable) and JsonFormatter (machine-parseable)
LoggerConveniencemixin for trace/debug/info/warning/error/fatal methodsLoggerTagExtensionfor tag-based classificationLoggerExceptionExtensionfor auto errorType/errorMessageHttpLogInterceptorframework-agnostic HTTP loggingTimestampProviderwith injectable clock and fake for testingMemoryLogStorewith rich query API and bounded capacityPurpleLogger.quick()one-liner convenience
2.1.0 #
FileLoggerProviderwith size-based rotation, async buffered writes, optional gzipLoggerEnricher— auto-inject hostname, pid, appName, appVersion, environment- Environment variable configuration:
PLOG_LEVEL,PLOG_FORMAT,PLOG_OUTPUT,PLOG_FILE_PATH LoggingBuilder.fromEnvironment()factoryLoggerFactoryruntime reconfiguration:setMinimumLevel(),addFilterRule(),removeFilterRule()LoggingBuilder.enrichWith()for contextual properties