

Settings: The screen showing list of debug files and content from one.
MSBD Logs is a lightweight logging helper for WordPress plugin and theme developers.
It provides a simple PHP API to write log messages and an admin interface to view, filter, and manage log files stored in the WordPress uploads directory.
The plugin is designed to be minimal, dependency-free, and safe for use on production sites.
debug and attentionAll log files are stored in: wp-content/uploads/logs/. logs folder is created in wp-content/uploads/ on activating the plugin. An index.html file is automatically created to prevent directory browsing.
Use the following helper function anywhere in your plugin or theme code:
* msbd_logs_create( 'Log something only when the debug mode is active' );
* msbd_logs_create( 'Unexpected issue detected, always log', 'attention' );
* debug logs are written only when debug mode is enabled
* attention logs are always written
After activation, a new menu item “MSBD Logs” appears in the WordPress admin dashboard.
From this screen, administrators can:
Only users with the manage_options capability can access the interface.
MSBD Logs works fully as a standalone plugin.
If other MSBD-related plugins are installed in the future, menu grouping can be handled automatically without affecting functionality.