{"id":273110,"date":"2026-01-27T11:32:49","date_gmt":"2026-01-27T11:32:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/msbd-logs\/"},"modified":"2026-01-27T19:43:27","modified_gmt":"2026-01-27T19:43:27","slug":"msbd-logs","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/msbd-logs\/","author":13546804,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"6.9.4","requires":"5.5","requires_php":"7.4","requires_plugins":null,"header_name":"MSBD Logs","header_author":"Micro Solutions BD","header_description":"Simple logging helper for plugin & theme developers with an admin UI for reviewing logs stored in wp-content\/uploads\/logs\/.","assets_banners_color":"707080","last_updated":"2026-01-27 19:43:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/microsolutionsbd.com\/wp-plugin-msbd-logs\/2026\/","header_author_uri":"https:\/\/microsolutionsbd.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":124,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"shahalom","date":"2026-01-27 19:43:27"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3448161,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3448161,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3448161,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3448161,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3448161,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Settings: The screen showing list of debug files and content from one."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,2679,14925,1522,1955],"plugin_category":[59],"plugin_contributors":[89513,80320],"plugin_business_model":[],"class_list":["post-273110","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-debugging","plugin_tags-error-log","plugin_tags-logging","plugin_tags-logs","plugin_category-utilities-and-tools","plugin_contributors-microsolutions","plugin_contributors-shahalom","plugin_committers-shahalom"],"banners":{"banner":"https:\/\/ps.w.org\/msbd-logs\/assets\/banner-772x250.png?rev=3448161","banner_2x":"https:\/\/ps.w.org\/msbd-logs\/assets\/banner-1544x500.png?rev=3448161","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/msbd-logs\/assets\/icon-128x128.png?rev=3448161","icon_2x":"https:\/\/ps.w.org\/msbd-logs\/assets\/icon-256x256.png?rev=3448161","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/msbd-logs\/assets\/screenshot-1.png?rev=3448161","caption":"Settings: The screen showing list of debug files and content from one."}],"raw_content":"<!--section=description-->\n<h3>MSBD Logs is a WordPress plugin that allows developers to review and manage log files generated by plugins and themes.<\/h3>\n\n<p><strong>MSBD Logs<\/strong> is a lightweight logging helper for WordPress plugin and theme developers.<\/p>\n\n<p>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.<\/p>\n\n<p>The plugin is designed to be minimal, dependency-free, and safe for use on production sites.<\/p>\n\n<h3>\ud83c\udf89 Key Features<\/h3>\n\n<ul>\n<li>Simple logging function for developers<\/li>\n<li>Daily rotating log files<\/li>\n<li>Separate log types: <code>debug<\/code> and <code>attention<\/code><\/li>\n<li>Debug logging can be enabled or disabled from admin<\/li>\n<li>Admin UI to view, and filter log files<\/li>\n<li>Secure file handling (capability and nonce protected)<\/li>\n<li>No database tables or external services<\/li>\n<li>Translation-ready<\/li>\n<\/ul>\n\n<h3>Log Storage Location<\/h3>\n\n<p>All log files are stored in: <code>wp-content\/uploads\/logs\/<\/code>. <code>logs<\/code> folder is created in <code>wp-content\/uploads\/<\/code> on activating the plugin. An <code>index.html<\/code> file is automatically created to prevent directory browsing.<\/p>\n\n<h3>Developer Usage<\/h3>\n\n<p>Use the following helper function anywhere in your plugin or theme code:\n* <code>msbd_logs_create( 'Log something only when the debug mode is active' );<\/code>\n* <code>msbd_logs_create( 'Unexpected issue detected, always log', 'attention' );<\/code>\n* <code>debug<\/code> logs are written only when debug mode is enabled\n* <code>attention<\/code> logs are always written<\/p>\n\n<h3>Admin Interface<\/h3>\n\n<p>After activation, a new menu item <strong>\"MSBD Logs\"<\/strong> appears in the WordPress admin dashboard.<\/p>\n\n<p>From this screen, administrators can:<\/p>\n\n<ul>\n<li>View available log files<\/li>\n<li>Filter log files by filename<\/li>\n<li>Inspect log file contents<\/li>\n<li>Enable or disable debug logging<\/li>\n<\/ul>\n\n<p>Only users with the <code>manage_options<\/code> capability can access the interface.<\/p>\n\n<h3>Standalone &amp; Compatible<\/h3>\n\n<p>MSBD Logs works fully as a standalone plugin.<\/p>\n\n<p>If other MSBD-related plugins are installed in the future, menu grouping can be handled automatically without affecting functionality.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>msbd-logs<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress<\/li>\n<li>Navigate to <strong>Admin \u2192 MSBD Logs<\/strong> to manage log files<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20replace%20wp_debug%20or%20php%20error%20logging%3F\"><h3>Does this plugin replace WP_DEBUG or PHP error logging?<\/h3><\/dt>\n<dd><p>No. MSBD Logs is a helper for custom logging inside plugins or themes. It does not replace WordPress core debugging or PHP error logs.<\/p><\/dd>\n<dt id=\"where%20are%20log%20files%20stored%3F\"><h3>Where are log files stored?<\/h3><\/dt>\n<dd><p>logs folder is created in <code>wp-content\/uploads\/<\/code> on activating the plugin. All log files are stored in: <code>wp-content\/uploads\/logs\/<\/code>.<\/p><\/dd>\n<dt id=\"what%20is%20the%20difference%20between%20%60debug%60%20and%20%60attention%60%20logs%3F\"><h3>What is the difference between `debug` and `attention` logs?<\/h3><\/dt>\n<dd><ul>\n<li><strong>debug<\/strong>: Logged only when debug mode is enabled in the admin<\/li>\n<li><strong>attention<\/strong>: Always logged, regardless of debug setting<\/li>\n<\/ul><\/dd>\n<dt id=\"is%20this%20plugin%20safe%20for%20production%20sites%3F\"><h3>Is this plugin safe for production sites?<\/h3><\/dt>\n<dd><p>Yes. Debug logging can be disabled at any time, and logs are written only when explicitly requested by developers.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20all%20latest%20versions%20of%20php%2C%20hhvm%2C%20et%20cetera%2C%20et%20cetera%3F\"><h3>Is this plugin compatible with all latest versions of PHP, HHVM, et cetera, et cetera?<\/h3><\/dt>\n<dd><p>Short answer: probably. Long answer: I honestly don't know for sure. I made a simple plugin. That's why I recommend a minimum of PHP 8.0. Also I do specific tests to ensure that I stay compatible with PHP 8.2<\/p><\/dd>\n<dt id=\"this%20plugin%20breaks%20my%20site%21%20how%20do%20i%20fix%20it%3F\"><h3>This plugin breaks my site! How do I fix it?<\/h3><\/dt>\n<dd><p>Deactivate the plugin and report this on the <a href=\"https:\/\/github.com\/Micro-Solutions-Bangladesh\/MSBD-Logs\/issues\">GitHub project page<\/a>, so that I\/we could take a look into the matter.<\/p><\/dd>\n<dt id=\"my%20question%20isn%27t%20answered%20here\"><h3>My question isn't answered here<\/h3><\/dt>\n<dd><p>Somehow we overlooked your question, We apologize for this. Please visit contact us page of <a href=\"https:\/\/microsolutionsbd.com\/contact-us\/?about=MSBD%20Logs%20Plugin\">Micro Solution Bangladesh<\/a> for your query.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Add more nonce check to enhance security. <\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Refactor nonce handling to enhance security.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Logging helper function<\/li>\n<li>Admin interface for viewing and managing logs<\/li>\n<li>Debug mode toggle<\/li>\n<li>Secure file handling<\/li>\n<\/ul>","raw_excerpt":"Simple logging helper for plugin and theme developers with an admin UI to view and manage log files.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/273110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=273110"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shahalom"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=273110"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=273110"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=273110"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=273110"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=273110"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=273110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}