en_logger 2.0.0
en_logger: ^2.0.0 copied to clipboard
EnLogger allows you to write log messages according to your needs without restricting you to writing messages to the debug console or other systems.
2.0.0 - 2026-05-28 #
Added #
- BREAKING:
Handler.writenow receives additional parameters:error,tags,eventId,timestamp, andsequenceNumber. - Core Observability Enhancements: Every log event now automatically generates and forwards the following to the
Handler:- A unique
eventId. - A
callerInfo, where the user call the log method - A
isolateName, thedebugNameof the isolate where the log method is executed - A
timestamp, captured immediately before any async queueing or lazy processing. - A globally incrementing
sequenceNumberto guarantee the absolute chronological creation order of the logs.
- A unique
- Error Disambiguation: Separated the
errorobject from the textmessagefor logs with a severity oferroror higher by introducing a dedicatederrorproperty. - Tags: Added
tags, an optional map of additional encodable key-value pairs to attach to log messages. - Zone Context Extraction: Added
zoneContextKeys.EnLoggercan now automatically extract specified keys from the currentZone, merge them with method-specifictags, and forward the unified map to theHandler.
Changed #
- Breaking: Rename
PrinterHandlertoDevLogHandler,PrinterColorConfigurationtoDevLogColorConfiguration,PrinterColortoDevLogColor - Preserve logs order (fifo) when lazy methods are used