{"id":125185,"date":"2020-07-21T04:13:31","date_gmt":"2020-07-21T04:13:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/samudra-log\/"},"modified":"2021-06-05T15:53:28","modified_gmt":"2021-06-05T15:53:28","slug":"samudra-log","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/samudra-log\/","author":8150611,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"5.7.15","requires":"4.7","requires_php":"7.0","requires_plugins":"","header_name":"Samudra Log","header_author":"Kasmin","header_description":"Write log for debugging","assets_banners_color":"96fff6","last_updated":"2021-06-05 15:53:28","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/wakamin","header_plugin_uri":"https:\/\/www.samudradigital.com","header_author_uri":"https:\/\/github.com\/wakamin","rating":0,"author_block_rating":0,"active_installs":0,"downloads":928,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["faq","changelog","description"],"tags":{"1.0.0":{"tag":"1.0.0","author":"wakamin","date":"2020-07-21 04:18:00"},"1.0.1":{"tag":"1.0.1","author":"wakamin","date":"2020-10-25 15:59:51"},"1.0.2":{"tag":"1.0.2","author":"wakamin","date":"2021-06-05 15:53:28"}},"upgrade_notice":{"1.0.2":"<ul>\n<li>Support Wordpress 5.7.2.<\/li>\n<\/ul>","1.0.1":"<ul>\n<li>Support Wordpress 5.5.1.<\/li>\n<\/ul>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2343854,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2343854,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":2343854,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2343854,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":2343854,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2343854,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2343854,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Plugin settings page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2679,1522],"plugin_category":[59],"plugin_contributors":[188573],"plugin_business_model":[],"class_list":["post-125185","plugin","type-plugin","status-publish","hentry","plugin_tags-debugging","plugin_tags-logging","plugin_category-utilities-and-tools","plugin_contributors-wakamin","plugin_committers-wakamin"],"banners":{"banner":"https:\/\/ps.w.org\/samudra-log\/assets\/banner-772x250.png?rev=2343854","banner_2x":"https:\/\/ps.w.org\/samudra-log\/assets\/banner-1544x500.png?rev=2343854","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/samudra-log\/assets\/icon-128x128.png?rev=2343854","icon_2x":"https:\/\/ps.w.org\/samudra-log\/assets\/icon-256x256.png?rev=2343854","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/samudra-log\/assets\/screenshot-1.png?rev=2343854","caption":"Plugin settings page."}],"raw_content":"<!--section=faq-->\n<dl>\n<dt id='why%20not%20just%20use%20wp_debug_log%3F'><h3>Why not just use WP_DEBUG_LOG?<\/h3><\/dt>\n<dd><p>WP_DEBUG_LOG write file into wp-content\/debug.log. In this file it also contain any error logs.\nThis plugin make it easy to see specific logging that we want. And adding custom logging file also easy with sd_log($var, 'file-name').<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Support Wordpress 5.7.2.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Support Wordpress 5.5.1.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Write log for debugging Wordpress site.<\/p>\n\n<h3>How to Use?<\/h3>\n\n<p>Use this function to write log.<\/p>\n\n<pre><code>\/\/ Variable value can be string, array, or object\n$variable = 'Variable value';\n\n\/\/ Log file will be in \/wp-content\/plugins\/samudra-log\/log\/sd_log.log\nsd_log($variable);\n\n\/\/ Log file will be in \/wp-content\/plugins\/samudra-log\/log\/my-file.log\nsd_log($variable, 'my-file');\n<\/code><\/pre>\n\n<h3>Restrict direct access to log file<\/h3>\n\n<p>If you are using Nginx, put this code inside your server block.<\/p>\n\n<pre><code>location ~ \/wp-content\/plugins\/samudra-log\/log\/.*\\.log$ {\n    deny all;\n    return 404;\n}\n<\/code><\/pre>","raw_excerpt":"Write log for debugging Wordpress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/125185","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=125185"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wakamin"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=125185"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=125185"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=125185"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=125185"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=125185"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=125185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}