dev_log_client 0.2.0
dev_log_client: ^0.2.0 copied to clipboard
Flutter/Dart client for dev_log_viewer. Forwards logs to the local viewer with a Dio interceptor, AppLog shortcuts, and raw log sender.
Changelog #
0.2.0 #
LogForwarder.init()now accepts an optionalprojectparameter. Auto-detecting the project name by readingpubspec.yamlonly ever worked on desktop/CLI targets — on iOS/Android the app runs sandboxed with no such file on disk, so discovery silently fell back to "lowest port wins." Passprojectexplicitly on mobile:LogForwarder.init(project: 'my_app');- Discovery no longer connects to whichever server answers first. It pings
every candidate port (8181–8185) concurrently via the side-effect-free
/pingendpoint, then prefers a server reporting the same project, picking the most recently started one among those. Previously a stale server from a previous run (or a different project) on a lower port would win the race every time. DevLogInterceptorrequest/response/error bodies are sent unredacted — this is a localhost-only, debug-only tool, and the point is being able to inspect (and copy) real request/response data while debugging. The viewer UI masks sensitive fields by default and reveals them on click instead.
0.1.1 #
- Documentation only — dartdoc comments added across the public API, no behavioural changes.
0.1.0 #
- Initial release.
LogForwarder— raw log sender with auto-discovery across ports 8181–8185.DevLogInterceptor— zero-config Dio interceptor for automatic API traffic logging.AppLog— named tag shortcuts (auth,nav,store,api,error,log).- All output suppressed automatically in release builds via
dart.vm.product.