youtube icon indicating copy to clipboard operation
youtube copied to clipboard

💡Feature request: Add activity / debug log for easier troubleshooting

Open communism420 opened this issue 5 months ago • 2 comments

PROBLEM:

When something goes wrong in ImprovedTube (a feature doesn't work, a setting doesn't apply, or there's unexpected behavior), it is very difficult to understand what exactly happened. Currently there is no way to see what actions the extension performed internally. This makes debugging issues time-consuming for both users and developers.

SOLUTION:

Add an Activity Log (or Debug Log) feature to ImprovedTube.

The log should record important actions performed by the extension, such as:

  • Applied settings and changes
  • Detected YouTube page events
  • Feature activations / deactivations
  • Errors and warnings

Ideally, the log should be:

  • Accessible from the extension popup or settings page
  • Have different log levels (Error, Warning, Info, Debug)
  • Allow exporting the log when reporting issues
  • Have an option to clear the log and set maximum size

ALTERNATIVES:

  • Enable browser DevTools and try to find relevant messages in the console (inconvenient and not user-friendly).
  • Ask users to describe the problem without technical details (leads to longer debugging time).
  • Add temporary console logs only during development (doesn't help end users).

RELEVANCE / SCOPE:

This feature would be especially useful for:

  • Users who encounter bugs and want to provide better reports
  • Power users who want to understand how the extension works
  • Developers when investigating issues

It would benefit a significant portion of users who actively report problems or experiment with settings.

SIDE EFFECTS:

  • Logging can slightly increase memory and CPU usage if enabled with high verbosity.
  • Need to be careful with sensitive data in logs (though ImprovedTube settings are mostly non-sensitive).
  • The log should probably be disabled by default to avoid unnecessary overhead.

CONTEXT:

This is a developer and power-user oriented feature that would significantly improve the ability to diagnose and fix bugs in ImprovedTube. Many browser extensions have similar logging/debug modes for this reason.

SHORT Table (Summary)

Problem When something breaks in ImprovedTube, it's very hard to understand what the extension did because there is no activity log
Solution Add an Activity/Debug Log that records extension actions (with log levels, export option, and accessible from popup/settings)
Alternatives Use browser DevTools console (inconvenient) / Guess what went wrong / No logging at all
Scope Useful for users reporting bugs and power users (~30-50% of active users who experiment with settings or face issues)
Side effects Minor performance overhead if logging is enabled. Should be disabled by default. Need to manage log size
Context Quality-of-life and developer feature to make debugging and bug reporting much easier

communism420 avatar Jun 25 '26 20:06 communism420

Hey I’d like to take this issue. My plan is to add a centralized logging utility and gradually hook it into key extension actions and also an export feature

agbuddy7 avatar Jun 26 '26 08:06 agbuddy7

Hey I’d like to take this issue. My plan is to add a centralized logging utility and gradually hook it into key extension actions and also an export feature

Hi! I assigned you. Good luck with my request!

communism420 avatar Jun 26 '26 11:06 communism420