{"id":21549,"date":"2014-04-13T15:52:35","date_gmt":"2014-04-13T13:52:35","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=21549"},"modified":"2014-04-13T15:52:35","modified_gmt":"2014-04-13T13:52:35","slug":"six-ways-to-make-your-production-logs-more-useful","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2014\/04\/13\/six-ways-to-make-your-production-logs-more-useful\/","title":{"rendered":"Six Ways to Make Your Production Logs More Useful"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"http:\/\/blog.travis-ci.com\/2014-04-11-fun-with-logs\/\">Six Ways to Make Your Production Logs More Useful<\/a><\/p>\n<blockquote>\n<ol>\n<li>Log structured data in a readable format<\/li>\n<li>Add a dash of color<\/li>\n<li>Logs let your app communicate with you and your team<\/li>\n<li>Seriously though, don&#8217;t put exception stack traces in your logs!<\/li>\n<li>Log URLs for easy access to more context<\/li>\n<li>Add emotional context to your logs<\/li>\n<\/ol>\n<\/blockquote>\n<p>Most of these are somewhat expected, but I emotional context in logs was definitely new to me.  I wonder why I&#8217;ve never even thought of this.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Six Ways to Make Your Production Logs More Useful Log structured data in a readable format Add a dash of color Logs let your app communicate with you and your team Seriously though, don&#8217;t put exception stack traces in your logs! Log URLs for easy access to more context Add emotional context to your logs &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2014\/04\/13\/six-ways-to-make-your-production-logs-more-useful\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Six Ways to Make Your Production Logs More Useful<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,133,62],"tags":[68,989],"keyring_services":[],"class_list":["post-21549","post","type-post","status-publish","format-link","hentry","category-general","category-programming","category-sysadmin","category-technology","tag-icons","tag-troubleshooting","post_format-post-format-link"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":27036,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/","url_meta":{"origin":21549,"position":0},"title":"Things to avoid when writing application logs","author":"Leonid Mamchenkov","date":"December 2, 2016","format":false,"excerpt":"DaedTech runs the blog post \"Avoid these Things When Logging from Your Application\". \u00a0It sounds trivial, but it's not. \u00a0There are quite a few good reminders for best logging practices. \u00a0Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9112,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/19\/watching-over-logs-in-kde\/","url_meta":{"origin":21549,"position":1},"title":"Watching over logs in KDE","author":"Leonid Mamchenkov","date":"June 19, 2005","format":false,"excerpt":"I know of a lot of people who enjoy having a terminal window with scrolling logs on their desktop. Setting one up was never a challange, but there are some nice KDE options that one could use that not so many people know about. At least I didn't know until\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12214,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/03\/02\/monitoring-php-errors-warnings-and-notices\/","url_meta":{"origin":21549,"position":2},"title":"Monitoring PHP errors, warnings, and notices","author":"Leonid Mamchenkov","date":"March 2, 2010","format":false,"excerpt":"There are a number of ways to monitor PHP errors, warnings, and notices. \u00a0 You can have your application code trigger some error handling, you can use PHP built-in methods, you can have some scripts running in the background\u00a0analyzing logs, etc. \u00a0While you already probably do some of it, here\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11434,"url":"https:\/\/mamchenkov.net\/wordpress\/2008\/11\/25\/on-remote-logging-with-syslog\/","url_meta":{"origin":21549,"position":3},"title":"On remote logging with syslog","author":"Leonid Mamchenkov","date":"November 25, 2008","format":false,"excerpt":"We've been doing some interesting things at work, as always, with yet more people and Linux boxes.\u00a0 And of the side effects of mixing people, Linux boxes, and several locations is this need for some sort of centralized logging.\u00a0 Luckily we have either syslog-ng or rsyslog daemons installed on each\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15110,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/06\/14\/social-networks-and-referrer-urls\/","url_meta":{"origin":21549,"position":4},"title":"Social networks and referrer URLs","author":"Leonid Mamchenkov","date":"June 14, 2011","format":false,"excerpt":"Pretty much every social network out there is building a custom front page for each user. \u00a0Such front pages are customized with preferences and previous activity of the user. \u00a0This is an excellent functionality. \u00a0But one thing such approach often breaks is a referral URL. \u00a0Have a look at something\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2011\/06\/facebook_stats-500x71.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16688,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/09\/07\/wordpress-plugins-teleport\/","url_meta":{"origin":21549,"position":5},"title":"WordPress Plugins : Teleport","author":"Leonid Mamchenkov","date":"September 7, 2012","format":"link","excerpt":"WordPress Plugins : Teleport Teleport is all about getting around WordPress quickly! Use keyboard shortcuts to get where you need to go with just two key strokes. First press \"w\", then choose from the following: e - (Edit) Edit current post\/page d - (Dashboard) Redirects to the Dashboard s -\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/21549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=21549"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/21549\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=21549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=21549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=21549"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=21549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}