- Run
dart formatwith the new style.
- Override empty stack traces for trace level events.
- Require Dart 3.4
- Move to
dart-lang/coremonorepo.
- Add notification when the log level is changed. Logger
onLevelChangedbroadcasts a stream of level values. - Require Dart 2.19.
- Add a check that throws if a logger name ends with '.'.
- Require Dart 2.18
- Add
Logger.attachedLoggerswhich exposes all loggers created with the default constructor. - Enable the
avoid_dynamic_callslint.
- Update description.
- Add example.
- List log levels in README.
- Stable null safety release.
- Migrate to null safety.
- Removed the deprecated
LoggerHandlertypedef.
- Add top level
defaultLevel. - Require Dart
>=2.0.0. - Make detached loggers work regardless of
hierarchicalLoggingEnabled.
- Set max SDK version to
<3.0.0, and adjust other dependencies.
- Fixed several documentation comments.
-
Added optional
LogRecord.objectfield. -
Logger.logsetsLogRecord.objectif the message is not a string or a function that returns a string. So that a handler can access the original object instead of just itstoString().
- Added
Logger.detached- a convenience factory to obtain a logger that is not attached to this library's logger hierarchy.
- Include default error with the auto-generated stack traces.
- Add support for automatically logging the stack trace on error messages. Note this can be expensive, so it is off by default.
- Revert change in
0.10.0.stackTracemust be an instance ofStackTrace. Use theTraceclass from the stack_trace package to convert strings.
- Change type of
stackTracefromStackTracetoObject.
-
Added optional
LogRecord.zonefield. -
Record current zone (or user specified zone) when creating new
LogRecords.