{"id":80266,"date":"2026-02-16T13:03:55","date_gmt":"2026-02-16T07:33:55","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=80266"},"modified":"2026-02-16T13:07:15","modified_gmt":"2026-02-16T07:37:15","slug":"enable-preview-of-log-files-explorer","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/enable-preview-of-log-files-explorer\/","title":{"rendered":"How to Enable Preview of .LOG Files in File Explorer"},"content":{"rendered":"<p>By default, the preview capability exists for most text-based files in File Explorer. However, for some file types, such as <strong>.log<\/strong> or <strong>.py<\/strong>, a preview may not be generated by default and you see the message &#8220;No preview available&#8221; in the preview pane in File Explorer.<\/p>\n<p>You can enable preview of such files (.log and .py) in the preview pane using a registry edit.<!--more--><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/eml-file-preview-pane-explorer-windows\/\">How to Enable Preview of .eml (Email Message) Files in Explorer<\/a><\/div>\n<h2>Resolution<\/h2>\n<p>To enable the preview of .log files in the Explorer preview pane, please open <a href=\"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/\">Command Prompt (admin)<\/a> and run the following command:<\/p>\n<pre class=\"cmd\">reg add \"HKEY_CLASSES_ROOT\\.log\" \/v \"PerceivedType\" \/d \"text\" \/f\r\n<\/pre>\n<p>Likewise, you can enable text previews for .py file type using the following command:<\/p>\n<pre class=\"cmd\">reg add \"HKEY_CLASSES_ROOT\\.py\" \/v \"PerceivedType\" \/d \"text\" \/f\r\n<\/pre>\n<p>Close all File Explorer windows. If the changes don&#8217;t take effect immediately, log off and log back in to your account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, the preview capability exists for most text-based files in File Explorer. However, for some file types, such as .log or .py, a preview may not be generated by default and you see the message &#8220;No preview available&#8221; in the preview pane in File Explorer. You can enable preview of such files (.log and &#8230; <a title=\"How to Enable Preview of .LOG Files in File Explorer\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/enable-preview-of-log-files-explorer\/\" aria-label=\"Read more about How to Enable Preview of .LOG Files in File Explorer\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[441],"class_list":["post-80266","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":309,"url":"https:\/\/www.winhelponline.com\/blog\/enable-or-disable-thumbnail-preview-for-pdf-files\/","url_meta":{"origin":80266,"position":0},"title":"[Fix] PDF Thumbnail and Preview Not Showing Up in File Explorer","author":"Ramesh","date":"May 29, 2008","format":false,"excerpt":"In your Windows computer, File Explorer may not display PDF thumbnails, and instead, show only the default icon assigned for PDF files. This might happen even if you have the option Always show icons, never thumbnails unchecked in the View tab of the Folder Options dialog. Also, in Microsoft Outlook\u2026","rel":"","context":"In &quot;Microsoft Edge&quot;","block_context":{"text":"Microsoft Edge","link":"https:\/\/www.winhelponline.com\/blog\/category\/edge\/"},"img":{"alt_text":"Edge PDF Preview Handler - Microsoft PDF Previewer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2484,"url":"https:\/\/www.winhelponline.com\/blog\/enable-ps1-preview-pane-ps1-powershell-file-explorer\/","url_meta":{"origin":80266,"position":1},"title":"How to Enable PowerShell (.PS1) Script Text Previews in Explorer Preview Pane?","author":"Ramesh","date":"March 29, 2016","format":false,"excerpt":"By default File Explorer Preview pane displays text previews for .reg, .bat and .cmd file types, but not for .ps1 (PowerShell scripts). Here is a registry edit that enables text preview for .ps1 file type in File Explorer Preview pane.Download ps1_preview.zip, unzip and run the enclosed registry file.Note: Make sure\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ps1_preview.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ps1_preview.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ps1_preview.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6431,"url":"https:\/\/www.winhelponline.com\/blog\/eml-file-preview-pane-explorer-windows\/","url_meta":{"origin":80266,"position":2},"title":"How to Enable Preview of .eml (Email Message) Files in Explorer","author":"Ramesh","date":"August 6, 2018","format":false,"excerpt":"Many users of Windows Mail or Windows Live Mail (part of Windows Live Essentials) used to backup individual emails and save them as .EML files. Since Windows Live Mail has been discontinued,\u00a0users are forced to use third-party mailers or even buy Microsoft's own produce, Microsoft Outlook. However, the preview pane\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":".eml file no preview available","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3401,"url":"https:\/\/www.winhelponline.com\/blog\/fix-preview-not-available-thumbnail-media-files\/","url_meta":{"origin":80266,"position":3},"title":"Fix: No Video Thumbnails and No Preview Available for Video Files","author":"Ramesh","date":"July 4, 2016","format":false,"excerpt":"When you open a folder containing video files, no thumbnails may be displayed for your videos. Also, when you click a video file in File Explorer, the Preview pane may neither show the image preview nor the mini-player control for the chosen file. In some cases, No preview available message\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"reset video thumbnails and preview registry keys","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":182,"url":"https:\/\/www.winhelponline.com\/blog\/fix-thumbnail-preview-for-pictures-w7-vista\/","url_meta":{"origin":80266,"position":4},"title":"Fix: Thumbnails Not Showing up in File Explorer","author":"Ramesh","date":"April 14, 2008","format":false,"excerpt":"Are your image files showing up with a generic mountain and lake scene instead of the miniature or thumbnail display in File Explorer? And video files may show up with a generic icon\/thumbnail. This article tells you how to enable thumbnails in File Explorer on Windows 10\/11 and earlier. RELATED:\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"thumbnails blank -- fix the IconServiceLib registry setting","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/iconservicelib-registry-thumbnail-fix.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/iconservicelib-registry-thumbnail-fix.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/iconservicelib-registry-thumbnail-fix.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/iconservicelib-registry-thumbnail-fix.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":9771,"url":"https:\/\/www.winhelponline.com\/blog\/word-could-not-create-the-work-file-temp-folder-outlook\/","url_meta":{"origin":80266,"position":5},"title":"Fix: Word could not create the work file when Opening Word Documents","author":"Ramesh","date":"June 14, 2019","format":false,"excerpt":"When you try to open or save a document in Microsoft Word, you receive the following error message: Word could not create the work file. Check the Temp environment variable. The error message can also appear when you preview a .docx or .xlsx file using the File Explorer preview pane.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"office 365 check bitness and version","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/office-365-bitness-check.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/office-365-bitness-check.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/office-365-bitness-check.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/80266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=80266"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/80266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=80266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=80266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=80266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}