{"id":378282,"date":"2023-05-08T06:26:10","date_gmt":"2023-05-08T06:26:10","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=378282"},"modified":"2024-04-17T12:58:39","modified_gmt":"2024-04-17T12:58:39","slug":"how-to-use-woocommerce-logger","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/","title":{"rendered":"How To Use WooCommerce Logger?"},"content":{"rendered":"\n<p>WooCommerce Logger is a feature in the WooCommerce plugin that allows you to log events that occur within your online store and this can include events such as orders, payments, and customer interactions.<\/p>\n\n\n\n<p>If you require expert assistance or want to develop custom unique functionality,<a href=\"https:\/\/webkul.com\/hire-woocommerce-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u00a0hire WooCommerce Developers<\/a>\u00a0for your project.<\/p>\n\n\n\n<p>The WooCommerce Logger records these events and stores them in a log file, which can be useful for troubleshooting and debugging issues.<\/p>\n\n\n\n<p>The WooCommerce Logger can be accessed through the WordPress admin panel by navigating to WooCommerce &gt; Status &gt; Logs. From there, you can view the logs and filter them by date range, log level, and log source.<\/p>\n\n\n\n<p> Moreover, You can also download the logs as a CSV file for further analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"488\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\" alt=\"webkul-woo-logs-1200x488-1\" class=\"wp-image-379541\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1-300x122.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1-250x102.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1-768x312.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Log Levels Explained<\/h2>\n\n\n\n<p>There are different log levels provided in the logger class. <\/p>\n\n\n\n<p>The log levels in WooCommerce Logger are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Emergency: Indicates a system-critical issue that requires immediate attention.<\/li>\n\n\n\n<li>Alert: Indicates a critical issue that should be addressed as soon as possible.<\/li>\n\n\n\n<li>Critical: Indicates a problem that requires immediate attention.<\/li>\n\n\n\n<li>Error: Indicates an error that needs to be fixed.<\/li>\n\n\n\n<li>Warning: Indicates a potential issue that should be investigated.<\/li>\n\n\n\n<li>Notice: Indicates important information about a process or event.<\/li>\n\n\n\n<li>Info: Indicates general information about a process or event.<\/li>\n\n\n\n<li>Debug: Indicates detailed information for debugging purposes.<\/li>\n<\/ul>\n\n\n\n<p>By default, the WooCommerce Logger is set to log events with a log level of Error or higher. However, you can adjust the log level in the WooCommerce settings to include additional events or reduce the level of logging.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">        $logger  = wc_get_logger();\n\t$context = array( &#039;source Log&#039; =&gt; &#039;Webkul&#039; );\n\t$logger-&gt;debug( &#039;Webkul Detailed information Log&#039;, $context );\n\t$logger-&gt;info( &#039;Webkul Information Log&#039;, $context );\n\t$logger-&gt;notice( &#039;Webkul Notice Log&#039;, $context );\n\t$logger-&gt;warning( &#039;Webkul Warning Log&#039;, $context );\n\t$logger-&gt;error( &#039;Webkul Errors&#039;, $context );\n\t$logger-&gt;critical( &#039;Webkul Critical conditions&#039;, $context );\n\t$logger-&gt;alert( &#039;Webkul Alert Log&#039;, $context );\n\t$logger-&gt;emergency( &#039;Webkul Emergency Log&#039;, $context );\n\n\t$logger-&gt;log( &#039;debug&#039;, &#039;Webkul Log Function&#039;, $context );<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Log handlers<\/h2>\n\n\n\n<p>Log Handlers were introduced in WooCommerce 2.7 to alter the behaviour of the core logger.<\/p>\n\n\n\n<p>WC_Logger delegates all the work to the log handlers by passing the log messages to each of them. The log handlers are as follows &#8211;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">File<\/h3>\n\n\n\n<p>To write the logs to a file WC_Log_Handler_File can be used. The logs can be viewed on the WooCommerce admin status page or on the server directory at <strong>wp-content\/uploads\/wc-logs<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"714\" height=\"292\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Selection_011.png\" alt=\"WooCo\nmmerce File Log\" class=\"wp-image-378924\" style=\"width:818px;height:334px\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Selection_011.png 714w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Selection_011-300x123.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/Selection_011-250x102.png 250w\" sizes=\"(max-width: 714px) 100vw, 714px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database<\/h3>\n\n\n\n<p>Use the WC_Log_Handler_DB to write the logs to the database. It writes the logs in a new aesthetic interface that is prettier to see.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"515\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1-1200x515.png\" alt=\"Database L\nog\" class=\"wp-image-379442\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1-1200x515.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1-300x129.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1-250x107.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1-768x329.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/woo-db-log-1.png 1252w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Email<\/h3>\n\n\n\n<p>The Email Handler is also available. But we do not recommend it as Email is not a go-to option for debugging and logging purposes.<\/p>\n\n\n\n<p>To use the Email Handler define the constant as WC_Log_Handler_Email in the wp-config.php file<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><code>How to Configure the Log Handler?<\/code><\/h2>\n\n\n\n<p>The Log handler is registered by default by WooCommerce, So you can define the constant WC_LOG_HANDLER in your wp-config.php to load the desired handler.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">define( &#039;WC_LOG_HANDLER&#039;, &#039;WC_Log_Handler_DB&#039; );<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How To Register Custom WooCommerce Log Handler?<\/h2>\n\n\n\n<p>By default, WooCommerce provides only three handlers that were described earlier in this post.<\/p>\n\n\n\n<p>But we can register custom handlers by using the filter woocommerce_register_log_handlers, which returns the array of instantiated handlers.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">function add_webkul_handler( $handlers ) {\n    array_push( $handlers, new Webkul_Log_Handler() );\n    return $handlers;\n}\nadd_filter( &#039;woocommerce_register_log_handlers&#039;, &#039;add_webkul_handler&#039; );<\/pre>\n\n\n\n<p>Additionally, Your custom handler must implement the WC_Log_Handler_Interface or otherwise must extend the WC_Log_Handler class.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">class Webkul_Log_Handler extends WC_Log_Handler {\n    public function handle( $timestamp, $level, $message, $context ) {\n        \/\/ Implement your handler here\n    }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p>For any technical assistance kindly\u00a0<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">raise\u00a0a ticket<\/a>\u00a0or\u00a0reach\u00a0us by email at\u00a0support@webkul.com. Thanks for Your Time! Have a Good Day!<\/p>\n\n\n\n<p>Also, discover various solutions to add more features and enhance your online store by visiting the\u00a0<a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce plugins<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce Logger is a feature in the WooCommerce plugin that allows you to log events that occur within your online store and this can include events such as orders, payments, and customer interactions. If you require expert assistance or want to develop custom unique functionality,\u00a0hire WooCommerce Developers\u00a0for your project. The WooCommerce Logger records these events <a href=\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":339,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7966,1260],"tags":[14130,14129,14081],"class_list":["post-378282","post","type-post","status-publish","format-standard","hentry","category-wordpress-woocommerce","category-wordpress","tag-custom-logger","tag-debugging-in-woocommerce","tag-woocommerce-logs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Use WooCommerce Logger? - Webkul Blog<\/title>\n<meta name=\"description\" content=\"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use WooCommerce Logger? - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-08T06:26:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-17T12:58:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\" \/>\n<meta name=\"author\" content=\"Gaurav Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gaurav Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\"},\"author\":{\"name\":\"Gaurav Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/40772eda35ff65fccf74b6dd98cb9a31\"},\"headline\":\"How To Use WooCommerce Logger?\",\"datePublished\":\"2023-05-08T06:26:10+00:00\",\"dateModified\":\"2024-04-17T12:58:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\"},\"wordCount\":542,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\",\"keywords\":[\"Custom Logger\",\"Debugging in WooCommerce\",\"WooCommerce Logs\"],\"articleSection\":[\"WooCommerce\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\",\"name\":\"How To Use WooCommerce Logger? - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\",\"datePublished\":\"2023-05-08T06:26:10+00:00\",\"dateModified\":\"2024-04-17T12:58:39+00:00\",\"description\":\"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png\",\"width\":1200,\"height\":488,\"caption\":\"webkul-woo-logs-1200x488-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use WooCommerce Logger?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/40772eda35ff65fccf74b6dd98cb9a31\",\"name\":\"Gaurav Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fceee8dd8a1d417863937db5bc8989d9ee806b37c5c28734ad8c6d198ae5587a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fceee8dd8a1d417863937db5bc8989d9ee806b37c5c28734ad8c6d198ae5587a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gaurav Sharma\"},\"description\":\"A skilled professional in the WordPress department, specializes in SOAP, GraphQL and WordPress SaaS Development. With expertise in WooCommerce Migration Services and proficiency in Facebook &amp; WhatsApp API Integrations, as well as Connectors to eBay, Gaurav delivers innovative and scalable solutions.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/gaurav-sharma747\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Use WooCommerce Logger? - Webkul Blog","description":"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/","og_locale":"en_US","og_type":"article","og_title":"How To Use WooCommerce Logger? - Webkul Blog","og_description":"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging","og_url":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-05-08T06:26:10+00:00","article_modified_time":"2024-04-17T12:58:39+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png","type":"","width":"","height":""}],"author":"Gaurav Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gaurav Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/"},"author":{"name":"Gaurav Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/40772eda35ff65fccf74b6dd98cb9a31"},"headline":"How To Use WooCommerce Logger?","datePublished":"2023-05-08T06:26:10+00:00","dateModified":"2024-04-17T12:58:39+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/"},"wordCount":542,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png","keywords":["Custom Logger","Debugging in WooCommerce","WooCommerce Logs"],"articleSection":["WooCommerce","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/","url":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/","name":"How To Use WooCommerce Logger? - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png","datePublished":"2023-05-08T06:26:10+00:00","dateModified":"2024-04-17T12:58:39+00:00","description":"- How To Use WooCommerce Logger? - Logging in WordPress - Debugging in WooCommerce - Register Custom Logger - Debugging","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/webkul-woo-logs-1200x488-1.png","width":1200,"height":488,"caption":"webkul-woo-logs-1200x488-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-use-woocommerce-logger\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Use WooCommerce Logger?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/40772eda35ff65fccf74b6dd98cb9a31","name":"Gaurav Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fceee8dd8a1d417863937db5bc8989d9ee806b37c5c28734ad8c6d198ae5587a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fceee8dd8a1d417863937db5bc8989d9ee806b37c5c28734ad8c6d198ae5587a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gaurav Sharma"},"description":"A skilled professional in the WordPress department, specializes in SOAP, GraphQL and WordPress SaaS Development. With expertise in WooCommerce Migration Services and proficiency in Facebook &amp; WhatsApp API Integrations, as well as Connectors to eBay, Gaurav delivers innovative and scalable solutions.","url":"https:\/\/webkul.com\/blog\/author\/gaurav-sharma747\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/378282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/339"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=378282"}],"version-history":[{"count":31,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/378282\/revisions"}],"predecessor-version":[{"id":434670,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/378282\/revisions\/434670"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=378282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=378282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=378282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}