{"id":27036,"date":"2016-12-02T00:07:40","date_gmt":"2016-12-01T22:07:40","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=27036"},"modified":"2016-12-02T00:07:40","modified_gmt":"2016-12-01T22:07:40","slug":"things-to-avoid-when-writing-application-logs","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/","title":{"rendered":"Things to avoid when writing application logs"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"http:\/\/www.daedtech.com\/\">DaedTech<\/a> runs the blog post &#8220;<a href=\"http:\/\/www.daedtech.com\/avoid-things-logging-application\/\">Avoid these Things When Logging from Your Application<\/a>&#8220;. \u00a0It sounds trivial, but it&#8217;s not. \u00a0There are quite a few good reminders for best logging practices. \u00a0Here&#8217;s the summary list:<\/p>\n<ul>\n<li>Forgetting Context<\/li>\n<li>Cryptic Codes<\/li>\n<li>Spamming the Log File<\/li>\n<li>Unsafe Logging Calls<\/li>\n<li>Mixing Application Logic with Logging<\/li>\n<li>Sensible Logging<\/li>\n<\/ul>\n<p>Read <a href=\"http:\/\/www.daedtech.com\/avoid-things-logging-application\/\">the whole thing<\/a> for examples and details.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>DaedTech runs the blog post &#8220;Avoid these Things When Logging from Your Application&#8220;. \u00a0It sounds trivial, but it&#8217;s not. \u00a0There are quite a few good reminders for best logging practices. \u00a0Here&#8217;s the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Things to avoid when writing application logs<\/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":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Things to avoid when writing application logs #WebDev #programming #logs","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},"jetpack_post_was_ever_published":false,"_links_to":"","_links_to_target":""},"categories":[1,18,62,1334],"tags":[3069,1649,1330],"keyring_services":[],"class_list":["post-27036","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","category-web-work","tag-best-practices","tag-logs","tag-web-development"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"DaedTech runs the blog post &quot;Avoid these Things When Logging from Your Application&quot;. It sounds trivial, but it&#039;s not. There are quite a few good reminders for best logging practices. Here&#039;s the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Leonid Mamchenkov\"\/>\n\t<meta name=\"google-site-verification\" content=\"VHvdD0_usx1_4DzKy_QCVcICVgX2EgA2ybELT-wl7kQ\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Leonid Mamchenkov - Life, universe, and everything else\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Things to avoid when writing application logs - Leonid Mamchenkov\" \/>\n\t\t<meta property=\"og:description\" content=\"DaedTech runs the blog post &quot;Avoid these Things When Logging from Your Application&quot;. It sounds trivial, but it&#039;s not. There are quite a few good reminders for best logging practices. Here&#039;s the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-12-01T22:07:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-12-01T22:07:40+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MamchenkovBlog\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@mamchenkov\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Things to avoid when writing application logs - Leonid Mamchenkov\" \/>\n\t\t<meta name=\"twitter:description\" content=\"DaedTech runs the blog post &quot;Avoid these Things When Logging from Your Application&quot;. It sounds trivial, but it&#039;s not. There are quite a few good reminders for best logging practices. Here&#039;s the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@mamchenkov\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#blogposting\",\"name\":\"Things to avoid when writing application logs - Leonid Mamchenkov\",\"headline\":\"Things to avoid when writing application logs\",\"author\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"},\"datePublished\":\"2016-12-02T00:07:40+02:00\",\"dateModified\":\"2016-12-02T00:07:40+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#webpage\"},\"articleSection\":\"All, Programming, Technology, Web work, best practices, logs, web development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/programming\\\/#listItem\",\"name\":\"Programming\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/programming\\\/#listItem\",\"position\":3,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#listItem\",\"name\":\"Things to avoid when writing application logs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#listItem\",\"position\":4,\"name\":\"Things to avoid when writing application logs\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/programming\\\/#listItem\",\"name\":\"Programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\",\"name\":\"Leonid Mamchenkov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/\",\"name\":\"Leonid Mamchenkov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#webpage\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/\",\"name\":\"Things to avoid when writing application logs - Leonid Mamchenkov\",\"description\":\"DaedTech runs the blog post \\\"Avoid these Things When Logging from Your Application\\\". It sounds trivial, but it's not. There are quite a few good reminders for best logging practices. Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2016\\\/12\\\/02\\\/things-to-avoid-when-writing-application-logs\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"datePublished\":\"2016-12-02T00:07:40+02:00\",\"dateModified\":\"2016-12-02T00:07:40+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/\",\"name\":\"Blog of Leonid Mamchenkov\",\"description\":\"Life, universe, and everything else\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Things to avoid when writing application logs - Leonid Mamchenkov","description":"DaedTech runs the blog post \"Avoid these Things When Logging from Your Application\". It sounds trivial, but it's not. There are quite a few good reminders for best logging practices. Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole","canonical_url":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"VHvdD0_usx1_4DzKy_QCVcICVgX2EgA2ybELT-wl7kQ","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#blogposting","name":"Things to avoid when writing application logs - Leonid Mamchenkov","headline":"Things to avoid when writing application logs","author":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"publisher":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"},"datePublished":"2016-12-02T00:07:40+02:00","dateModified":"2016-12-02T00:07:40+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#webpage"},"isPartOf":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#webpage"},"articleSection":"All, Programming, Technology, Web work, best practices, logs, web development"},{"@type":"BreadcrumbList","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress#listItem","position":1,"name":"Home","item":"https:\/\/mamchenkov.net\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/#listItem","name":"Programming"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/#listItem","position":3,"name":"Programming","item":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#listItem","name":"Things to avoid when writing application logs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#listItem","position":4,"name":"Things to avoid when writing application logs","previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/#listItem","name":"Programming"}}]},{"@type":"Person","@id":"https:\/\/mamchenkov.net\/wordpress\/#person","name":"Leonid Mamchenkov","image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"}},{"@type":"Person","@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author","url":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/","name":"Leonid Mamchenkov","image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"}},{"@type":"WebPage","@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#webpage","url":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/","name":"Things to avoid when writing application logs - Leonid Mamchenkov","description":"DaedTech runs the blog post \"Avoid these Things When Logging from Your Application\". It sounds trivial, but it's not. There are quite a few good reminders for best logging practices. Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#website"},"breadcrumb":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/#breadcrumblist"},"author":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"creator":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"datePublished":"2016-12-02T00:07:40+02:00","dateModified":"2016-12-02T00:07:40+02:00"},{"@type":"WebSite","@id":"https:\/\/mamchenkov.net\/wordpress\/#website","url":"https:\/\/mamchenkov.net\/wordpress\/","name":"Blog of Leonid Mamchenkov","description":"Life, universe, and everything else","inLanguage":"en-US","publisher":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#person"}}]},"og:locale":"en_US","og:site_name":"Leonid Mamchenkov - Life, universe, and everything else","og:type":"article","og:title":"Things to avoid when writing application logs - Leonid Mamchenkov","og:description":"DaedTech runs the blog post &quot;Avoid these Things When Logging from Your Application&quot;. It sounds trivial, but it's not. There are quite a few good reminders for best logging practices. Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole","og:url":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/","og:image":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg","og:image:secure_url":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg","og:image:width":1024,"og:image:height":1024,"article:published_time":"2016-12-01T22:07:40+00:00","article:modified_time":"2016-12-01T22:07:40+00:00","article:publisher":"https:\/\/www.facebook.com\/MamchenkovBlog","twitter:card":"summary_large_image","twitter:site":"@mamchenkov","twitter:title":"Things to avoid when writing application logs - Leonid Mamchenkov","twitter:description":"DaedTech runs the blog post &quot;Avoid these Things When Logging from Your Application&quot;. It sounds trivial, but it's not. There are quite a few good reminders for best logging practices. Here's the summary list: Forgetting Context Cryptic Codes Spamming the Log File Unsafe Logging Calls Mixing Application Logic with Logging Sensible Logging Read the whole","twitter:creator":"@mamchenkov","twitter:image":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg"},"aioseo_meta_data":{"post_id":"27036","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-07-20 04:11:41","updated":"2026-01-15 12:29:45","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tThings to avoid when writing application logs\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/mamchenkov.net\/wordpress"},{"label":"Technology","link":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/"},{"label":"Programming","link":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/programming\/"},{"label":"Things to avoid when writing application logs","link":"https:\/\/mamchenkov.net\/wordpress\/2016\/12\/02\/things-to-avoid-when-writing-application-logs\/"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":28553,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/07\/php-application-logging-with-amazon-cloudwatch-logs-and-monolog\/","url_meta":{"origin":27036,"position":0},"title":"PHP application logging with Amazon CloudWatch Logs and Monolog","author":"Leonid Mamchenkov","date":"May 7, 2018","format":false,"excerpt":"AWS Developer Blog ran this post a while back - \"PHP application logging with Amazon CloudWatch Logs and Monolog\", in which they show how to use Monolog and Amazon CloudWatch together in any PHP application.\u00a0 It goes beyond a basic configuration of connecting the two, all the way into setting\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\/2018\/05\/php-aws-500x254.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":40505,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/03\/27\/logging-best-practices\/","url_meta":{"origin":27036,"position":1},"title":"Logging best practices","author":"Leonid Mamchenkov","date":"March 27, 2019","format":false,"excerpt":"https:\/\/www.slideshare.net\/geshan\/logging-best-practices Logging, I think, is one of the least debated subjects in the software development. Everyone does it at least to some degree. Everyone agrees that good logs are important. But beyond that, there's enough debate on what are the best practices, tools, and options. We need more of blog\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":21711,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/04\/28\/monolog-logging-for-php-5-3\/","url_meta":{"origin":27036,"position":2},"title":"Monolog &#8211; Logging for PHP 5.3+","author":"Leonid Mamchenkov","date":"April 28, 2014","format":"link","excerpt":"Monolog - Logging for PHP 5.3+","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":22179,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/07\/12\/sentry-an-event-logging-platform-focused-on-capturing-and-aggregating-exceptions\/","url_meta":{"origin":27036,"position":3},"title":"Sentry &#8211; an event logging platform focused on capturing and aggregating exceptions","author":"Leonid Mamchenkov","date":"July 12, 2014","format":"link","excerpt":"Sentry - an event logging platform focused on capturing and aggregating exceptions. \u00a0Most of the code is Open Source (except for a few proprietary plugins), in case you want to run your own hosted version. Supports Ruby, Python, JavaScript, Java, Rails, Django, PHP, iOS, node.js, .NET, and more.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"sentry","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2014\/07\/sentry-500x182.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11434,"url":"https:\/\/mamchenkov.net\/wordpress\/2008\/11\/25\/on-remote-logging-with-syslog\/","url_meta":{"origin":27036,"position":4},"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":21840,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/05\/20\/easylogging-single-header-only-extremely-light-weight-high-performance-logging-library-for-c-applications\/","url_meta":{"origin":27036,"position":5},"title":"Easylogging++ &#8211; single header only, extremely light-weight high performance logging library for C++ applications","author":"Leonid Mamchenkov","date":"May 20, 2014","format":"link","excerpt":"Easylogging++ - single header only, extremely light-weight high performance logging library for C++ applications","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\/27036","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=27036"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/27036\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=27036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=27036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=27036"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=27036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}