log_and_shake 1.1.0 copy "log_and_shake: ^1.1.0" to clipboard
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.mmm format 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
  • 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: true parameter in LogAndShake.run()
    • Logs are saved using SharedPreferences
    • Automatically loads previous session logs on startup

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

1.0.2 #

Changed #

  • Add new parameters to shake 'shakeThreshold, minimumShakeCount, and useFilter', and change the default values.

1.0.1 #

Changed #

  • Fix open dialog again if Log screen already opened
  • Add clean and readable example

1.0.0 #

Added #

  • Initial release
  • Shake to view logs functionality
  • Automatic capture of print() statements and uncaught exceptions
  • Log level detection (Info, Warning, Error)
  • Search and filter logs
  • Clear logs functionality
  • Production safety (only enabled in dev/profile builds)
2
likes
150
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A developer-friendly package for logging and debugging via shake gestures. Great for debugging in dev builds.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_provider, scrollable_positioned_list, shake, share_plus, shared_preferences

More

Packages that depend on log_and_shake