<!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG-spv-->{"id":1957172,"date":"2021-07-31T02:39:00","date_gmt":"2021-07-31T00:39:00","guid":{"rendered":"http:\/\/nhub.news\/?p=1957172"},"modified":"2021-07-31T05:02:08","modified_gmt":"2021-07-31T03:02:08","slug":"logging-best-practices","status":"publish","type":"post","link":"http:\/\/nhub.news\/de\/2021\/07\/logging-best-practices\/","title":{"rendered":"Logging Best Practices"},"content":{"rendered":"<p style=\"text-align: justify;\"><b>Logs are key to part of any software. Read how can one make the log more insightful. Learn about things to keep in mind and things to avoid while logging.<\/b><br \/>\nJoin the DZone community and get the full member experience. What is going on? Why it is not working like that? This is not expected behavior:( Sounds familiar? I am sure every software engineer has been in this situation where they are not able to figure out what is going on in the code? Well, sometimes an Insightful log statement can come in handy to answers the queries. Let us go over a few things which I personally have adopted and feel are decent enough for others to follow for effective and insightful logging. Note: While writing this, log4j has been kept in mind. Some commonly used log levels: FATAL, ERROR, WARN, INFO, DEBUG, TRACE. Simple interpretation can be taken as: Logs should help out software engineers to figure out Where, What, and Why something went wrong. If the developer is able to find issues just from logs, logging is good. Happy Logging!:) Published at DZone with permission of Setu Patani. See the original article here. Opinions expressed by DZone contributors are their own.<\/p>\n<script>jQuery(function(){jQuery(\".vc_icon_element-icon\").css(\"top\", \"0px\");});<\/script><script>jQuery(function(){jQuery(\"#td_post_ranks\").css(\"height\", \"10px\");});<\/script><script>jQuery(function(){jQuery(\".td-post-content\").find(\"p\").find(\"img\").hide();});<\/script>","protected":false},"excerpt":{"rendered":"<p>Logs are key to part of any software. Read how can one make the log more insightful. Learn about things to keep in mind and things to avoid while logging. Join the DZone community and get the full member experience. What is going on? Why it is not working like that? This is not expected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1957171,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1957172"}],"collection":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/comments?post=1957172"}],"version-history":[{"count":1,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1957172\/revisions"}],"predecessor-version":[{"id":1957173,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1957172\/revisions\/1957173"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media\/1957171"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media?parent=1957172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/categories?post=1957172"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/tags?post=1957172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}