{"id":3135,"date":"2022-12-01T08:50:40","date_gmt":"2022-12-01T08:50:40","guid":{"rendered":"https:\/\/dicc.in\/blog\/?p=3135"},"modified":"2022-12-01T08:50:45","modified_gmt":"2022-12-01T08:50:45","slug":"debugging-10x-faster-logs","status":"publish","type":"post","link":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/","title":{"rendered":"Debugging 10x Faster with your Logs."},"content":{"rendered":"\n<p>Developers &amp; administrators can spend way less time debugging when properly using their logs.<\/p>\n\n\n\n<p>Technical teams spend way too much time investigating why a running application did not do exactly what it was supposed to do. This is due to several reasons:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"1\">\n<li>Production environments never react as QA or dev<\/li>\n\n\n\n<li>The amount of data in log files is too big to get analyzed without appropriate tools<\/li>\n\n\n\n<li>Tech teams react to unexpected problems and don\u2019t have time to solve them pro-actively<\/li>\n<\/ol>\n\n\n\n<p>We\u2019re sharing in this short article our top 2 debugging best practices you can implement to save time in a crisis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1) Tidying up regularly before facing a debugging crisis<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"271\" height=\"186\" src=\"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/2-min-2-1.jpg\" alt=\"\" class=\"wp-image-3137\"\/><\/figure>\n\n\n\n<p>Let\u2019s illustrate this with Java debugging. Properly formatted, each log event provides the classname and the severity level. If the code is properly written, these classes should emit warnings and errors when appropriate. With this information, you can arrange to spot small issues before they get bigger and out of hand.<\/p>\n\n\n\n<p>We then pick &amp; solve the most relevant ones in order to get our code safer. Indeed, 80% of your problems come from 20% of the causes as explained by the\u00a0Pareto principle. So when we\u2019re fixing the right ones, our debugging future becomes much brighter!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2) Getting rich, detailed information by adding context to your logs<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/3-min-1024x492.png\" alt=\"\" class=\"wp-image-3138\" srcset=\"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/3-min-1024x492.png 1024w, https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/3-min-300x144.png 300w, https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/3-min-768x369.png 768w, https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/3-min.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A user complains that something went wrong, for ex. clicking or downloading features were not working, or downloading is not working. And digging in all your logs to understand what happened during one of their actions will take you a while\u2026 so you\u2019re faced with either doing the ostrich and bury your hand in the sand, or actually diving into your logs for a while to hand pick the information you need for debugging. This is why we encourage tech teams to add context to their log events.<\/p>\n\n\n\n<p>So if one of our user is attached to a specific scope we filter out all the non interesting logs in one click.<br>Implementing context addition requires developers to follow some common standards when implementing their classes. But taking the time to define and implement these standards is worth the time you\u2019re going to save when debugging!<\/p>\n\n\n\n<p><br><br>You know now our top 2 best practices to pro-actively ensure fast debugging: a crisis is always properly dealt with when properly planned for!<\/p>\n\n\n\n<p><a><\/a><a href=\"https:\/\/web.archive.org\/web\/20160905162709\/http:\/logmatic.io\/wp-content\/uploads\/2015\/04\/blogjavaenrichedjson.png\"><br><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developers &amp; administrators can spend way less time debugging when properly using their logs. Technical teams spend way too much time investigating why a running application did not do exactly what it was supposed to do. This is due to several reasons: We\u2019re sharing in this short article our top 2 debugging best practices you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3136,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-3135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethical-hacking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Debugging 10x Faster with your Logs. - DICC<\/title>\n<meta name=\"description\" content=\"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debugging 10x Faster with your Logs. - DICC\" \/>\n<meta property=\"og:description\" content=\"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/\" \/>\n<meta property=\"og:site_name\" content=\"DICC\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-01T08:50:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-01T08:50:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"168\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rahul Garg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahul Garg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/\"},\"author\":{\"name\":\"Rahul Garg\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/#\\\/schema\\\/person\\\/bf5578be9aad45dc38d5b912a301b891\"},\"headline\":\"Debugging 10x Faster with your Logs.\",\"datePublished\":\"2022-12-01T08:50:40+00:00\",\"dateModified\":\"2022-12-01T08:50:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/\"},\"wordCount\":393,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/dicc.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/1-min-1-1.png\",\"articleSection\":[\"Ethical Hacking\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/\",\"url\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/\",\"name\":\"Debugging 10x Faster with your Logs. - DICC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/dicc.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/1-min-1-1.png\",\"datePublished\":\"2022-12-01T08:50:40+00:00\",\"dateModified\":\"2022-12-01T08:50:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/#\\\/schema\\\/person\\\/bf5578be9aad45dc38d5b912a301b891\"},\"description\":\"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/dicc.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/1-min-1-1.png\",\"contentUrl\":\"https:\\\/\\\/dicc.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/1-min-1-1.png\",\"width\":300,\"height\":168},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/debugging-10x-faster-logs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dicc.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Debugging 10x Faster with your Logs.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dicc.in\\\/blog\\\/\",\"name\":\"DICC\",\"description\":\"Stock Market Updates, Tips and Tricks\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/dicc.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dicc.in\\\/blog\\\/#\\\/schema\\\/person\\\/bf5578be9aad45dc38d5b912a301b891\",\"name\":\"Rahul Garg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g\",\"caption\":\"Rahul Garg\"},\"url\":\"https:\\\/\\\/dicc.in\\\/blog\\\/author\\\/dicc-rahulgmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Debugging 10x Faster with your Logs. - DICC","description":"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.","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:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/","og_locale":"en_GB","og_type":"article","og_title":"Debugging 10x Faster with your Logs. - DICC","og_description":"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.","og_url":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/","og_site_name":"DICC","article_published_time":"2022-12-01T08:50:40+00:00","article_modified_time":"2022-12-01T08:50:45+00:00","og_image":[{"width":300,"height":168,"url":"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png","type":"image\/png"}],"author":"Rahul Garg","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rahul Garg","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#article","isPartOf":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/"},"author":{"name":"Rahul Garg","@id":"https:\/\/dicc.in\/blog\/#\/schema\/person\/bf5578be9aad45dc38d5b912a301b891"},"headline":"Debugging 10x Faster with your Logs.","datePublished":"2022-12-01T08:50:40+00:00","dateModified":"2022-12-01T08:50:45+00:00","mainEntityOfPage":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/"},"wordCount":393,"commentCount":0,"image":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#primaryimage"},"thumbnailUrl":"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png","articleSection":["Ethical Hacking"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/","url":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/","name":"Debugging 10x Faster with your Logs. - DICC","isPartOf":{"@id":"https:\/\/dicc.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#primaryimage"},"image":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#primaryimage"},"thumbnailUrl":"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png","datePublished":"2022-12-01T08:50:40+00:00","dateModified":"2022-12-01T08:50:45+00:00","author":{"@id":"https:\/\/dicc.in\/blog\/#\/schema\/person\/bf5578be9aad45dc38d5b912a301b891"},"description":"Get The Great Knowledge Of The Debugging 10x Faster with your Logs.","breadcrumb":{"@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#primaryimage","url":"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png","contentUrl":"https:\/\/dicc.in\/blog\/wp-content\/uploads\/2022\/12\/1-min-1-1.png","width":300,"height":168},{"@type":"BreadcrumbList","@id":"https:\/\/dicc.in\/blog\/debugging-10x-faster-logs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dicc.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Debugging 10x Faster with your Logs."}]},{"@type":"WebSite","@id":"https:\/\/dicc.in\/blog\/#website","url":"https:\/\/dicc.in\/blog\/","name":"DICC","description":"Stock Market Updates, Tips and Tricks","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dicc.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/dicc.in\/blog\/#\/schema\/person\/bf5578be9aad45dc38d5b912a301b891","name":"Rahul Garg","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d46858de79ed55ef42244bb604e18326c65c3380258854c052b009574896374?s=96&d=mm&r=g","caption":"Rahul Garg"},"url":"https:\/\/dicc.in\/blog\/author\/dicc-rahulgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/posts\/3135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/comments?post=3135"}],"version-history":[{"count":1,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/posts\/3135\/revisions"}],"predecessor-version":[{"id":3139,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/posts\/3135\/revisions\/3139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/media\/3136"}],"wp:attachment":[{"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/media?parent=3135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/categories?post=3135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dicc.in\/blog\/wp-json\/wp\/v2\/tags?post=3135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}