trackly_logger 0.2.0
trackly_logger: ^0.2.0 copied to clipboard
A lightweight, zero-dependency logger for Dart and Flutter with log levels, colored output, tags, and clickable links to the line of code that wrote each log.
0.2.0 #
- Jump to the code: each log now ends with its full location, such as
(package:app/login_page.dart:42:7), which VS Code and Android Studio turn into a link that opens the file at that line.TracklyConsoleOutput(callerLinks: false)shows the shortmain.dart:42form instead.
- New
TracklyRecord.location(TracklyLocation) with theuri,line,column, andlinkof where a record was logged.callerstill returns the short form. - Colors are off by default on iOS, where logs showed the color codes as text.
TracklyConsoleOutput.colorsis nownullby default, meaning automatic. - Long lines are split at spaces, so words and links stay whole.
- Breaking: the
callerparameter ofTracklyRecord's constructor is replaced bylocation.
0.1.0 #
- Initial release.
- Seven log levels: trace, debug, info, success, warning, error, fatal.
- Colored console output with emojis and timestamps, each configurable.
- Automatic
file.dart:linecaller info on the Dart VM. - Global
tracklylogger, taggedTracklyLoggerinstances, andTracklyLoggerMixin. - Attach errors, stack traces, and extra data to any log.
- Lazy messages that are only built when the log is written.
measure()to log how long an operation took.TracklyLogger.filterto drop specific records, such as a noisy tag.- Logging is off by default in release builds.
- Outputs:
TracklyConsoleOutput,TracklyDeveloperOutput(DevTools),TracklyMemoryOutput(recent history),TracklyMultiOutput, or your ownTracklyOutput. - Long lines are split so Android's logcat doesn't truncate them.
- No dependencies; works on every Dart and Flutter platform.