log_and_shake 1.1.0
log_and_shake: ^1.1.0 copied to clipboard
A developer-friendly package for logging and debugging via shake gestures. Great for debugging in dev builds.
Changelog #
All notable changes to this project will be documented in this file.
1.1.0 - 2025-01-25 #
Added #
- Timestamps: Each log entry now displays a timestamp in
HH:MM:SS.mmmformat for precise timing information - Log Rotation: Configurable maximum log count (default: 1000) to prevent memory bloat during long sessions
- Use
LogAndShake.setMaxLogCount(count)to customize - Automatically removes oldest logs when limit is reached
- Use
- Export Functionality: Share and copy logs with ease
- Export logs as a text file via native share dialog
- Copy all logs to clipboard with one tap
- Accessible via new "More Options" menu in the log screen
- Stack Trace Formatting: Improved readability for error logs
- Automatic detection of stack traces in log messages
- Collapsible/expandable sections for stack traces
- Clean, formatted display with gray background
- Copy stack trace separately with dedicated button
- Shows first 10 lines with indicator for remaining lines
- Log Persistence: Optional log persistence across app restarts
- Enable with
persistLogs: trueparameter inLogAndShake.run() - Logs are saved using SharedPreferences
- Automatically loads previous session logs on startup
- Enable with
Changed #
- Log list items are now expandable when they contain stack traces
- AppBar now uses a PopupMenu for better organization of actions
- Improved overall UI/UX of the log screen