Debug and error logging APIs for Dart
open sourceBSD-3-Clausefree
logging is the Dart team's logging package, with hierarchical named loggers like Java's java.util.logging.Logger and the Closure JS Logger. You set a level on the root logger, from FINEST to SHOUT, and listen on its stream of log records (message, error, stack trace, logger name and time) to print or send them where you like; child loggers can have levels of their own. By default it does nothing until you add a handler. It's published on pub.dev from the dart-lang/core repository.
Problems it solves
- add log levels to my Dart or Flutter app
- route Dart log messages to my own handler
- log errors with stack traces from Dart code
Features
- hierarchical named loggers
- levels from FINEST to SHOUT
- stream of log records with errors and stack traces
- level change notifications
Alternatives
The same job
These do what logging does.
- logger Small, extensible logger that prints readable logs for Dart and Flutter
