Modern WordPress development often requires visibility into what is happening behind the scenes—especially when debugging complex plugins or themes. While WordPress provides core debugging tools, there is a frequent need for structured, intentional, and controlled logging that does not rely on global debug settings.
MSBD Logs is built precisely to address that need.
Developed and maintained by Micro Solutions Bangladesh, MSBD Logs is a lightweight WordPress plugin that provides developers with a clean logging API and an intuitive admin interface for reviewing and managing log files—without introducing unnecessary dependencies or database overhead.
What Is MSBD Logs?
MSBD Logs is a developer-friendly logging helper for WordPress plugins and themes.
It allows developers to explicitly log events, warnings, or debugging information to dedicated log files stored in the WordPress uploads directory. These logs can then be safely reviewed from within the WordPress admin dashboard.
The plugin is intentionally minimal, dependency-free, and production-safe.
Key Features at a Glance
MSBD Logs focuses on clarity, security, and performance:
- Simple logging helper function for developers
- Daily rotating log files
- Two log types:
debugandattention - Admin-controlled debug logging toggle
- Secure admin UI for viewing and filtering logs
- No database tables or third-party services
- Capability and nonce-protected file access
- Translation-ready and future-proof
Clean and Secure Log Storage
All logs are stored in:
wp-content/uploads/logs/
Upon plugin activation:
- The
logsdirectory is created automatically - An
index.htmlfile is added to prevent directory browsing - Log files are rotated daily for easier management
This approach ensures logs are accessible to administrators while remaining protected from public exposure.
Designed for Developers
MSBD Logs provides a simple and explicit PHP API that can be used anywhere inside a plugin or theme.
Logging Behavior
debug logs: Written only when debug mode is enabled from the admin panel- attention logs: Always written, regardless of debug status, Ideal for unexpected states or important runtime notices
This debug mode and attention mode separation ensures you can keep production environments clean while still capturing critical information when needed.
Admin Interface Overview
After activation, a new “MSBD Logs” menu appears in the WordPress admin dashboard.
From this screen, administrators can:
- View available log files
- Filter log files by filename
- Inspect log contents directly in the dashboard
- Enable or disable debug logging at any time
Access is restricted to users with the manage_options capability, ensuring that log data remains secure.
Safe for Production Environments
MSBD Logs is explicitly designed with production safety in mind:
- Debug logging can be disabled instantly
- No automatic or background logging
- Logs are written only when developers explicitly request it
- No impact on database performance
This makes it suitable for live websites where stability and performance are critical.
Installation
Getting started takes only a few steps:
- Upload the
msbd-logsfolder to/wp-content/plugins/ - Activate the plugin from the Plugins menu
- Navigate to Admin → MSBD Logs
No additional configuration is required.
When Should You Use MSBD Logs?
MSBD Logs is ideal when:
- Developing custom WordPress plugins or themes
- Debugging production-safe issues without enabling global
WP_DEBUG - Tracking important runtime events intentionally
- You want a clean logging solution without database or SaaS dependencies
MSBD Logs fills a practical gap in the WordPress developer ecosystem: simple, explicit, and secure logging with a usable admin interface. If you value control, performance, and clarity in your development workflow, MSBD Logs is a solid addition to your toolkit.
For support, feature requests, or bug reports, issues can be reported via the official GitHub repository. For general inquiries, please contact Micro Solutions Bangladesh through the website.
