MSBD Logs

plugin banner

Simple logging helper for plugin and theme developers with an admin UI to view and manage log files.

Author:Shah Alom (profile at wordpress.org)
WordPress version required:5.5
WordPress version tested:6.9
Plugin version:1.0.2
Added to WordPress repository:27-01-2026
Last updated:27-01-2026
Rating, %:0
Rated by:0
Plugin URI:https://microsolutionsbd.com/wp-plugin-msbd-l...
Total downloads:113
plugin download
Click to start download

MSBD Logs is a WordPress plugin that allows developers to review and manage log files generated by plugins and themes.

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.

???? Key Features

  • Simple logging function for developers
  • Daily rotating log files
  • Separate log types: debug and attention
  • Debug logging can be enabled or disabled from admin
  • Admin UI to view, and filter log files
  • Secure file handling (capability and nonce protected)
  • No database tables or external services
  • Translation-ready

Log Storage Location

All 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.

Developer Usage

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

Admin Interface

After activation, a new menu item “MSBD Logs” appears in the WordPress admin dashboard.

From this screen, administrators can:

  • View available log files
  • Filter log files by filename
  • Inspect log file contents
  • Enable or disable debug logging

Only users with the manage_options capability can access the interface.

Standalone & Compatible

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.


Screenshots
FAQ
ChangeLog