{"id":499168,"date":"2024-08-12T15:23:04","date_gmt":"2024-08-12T14:23:04","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=phpstorm&#038;p=499168"},"modified":"2025-09-16T18:39:45","modified_gmt":"2025-09-16T17:39:45","slug":"laravel-log-files-support-in-phpstorm","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/fr\/phpstorm\/2024\/08\/laravel-log-files-support-in-phpstorm","title":{"rendered":"Laravel Log Files Support in PhpStorm"},"content":{"rendered":"\n<p>Today I want to look at a new feature in <a href=\"https:\/\/www.jetbrains.com\/phpstorm\/\" target=\"_blank\" rel=\"noopener\">PhpStorm<\/a>, one that I think many Laravel developers will find very interesting. Now, to be clear, I\u2019m a Developer Advocate at <a href=\"https:\/\/www.jetbrains.com\/\" target=\"_blank\" rel=\"noopener\">JetBrains<\/a>, so you might think it\u2019s obvious I\u2019m excited about PhpStorm. Well, I wouldn\u2019t be writing this post if I weren\u2019t <em>genuinely<\/em> thrilled about it myself. First and foremost, I\u2019m a PHP and Laravel developer, and I write code daily. So yes, I can say from experience: I\u2019m really excited about this one!<\/p>\n\n\n\n<p>So, let\u2019s take a look at how the latest version of PhpStorm has improved logger support!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Quick tip: improved PhpStorm logging\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/TktIjt6Mc6Q?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Improved log files<\/h2>\n\n\n\n<p>Until recently, log files in PhpStorm have been pretty\u2026 boring. They are huge blobs of text \u2013 that\u2019s it:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXcrhP-FiIUx6mJUARaD1ATc9JGeF0mKmnvkWdhaI7dclXN5DIKdLAsOtDMvetH9QPmxb9vLih9ylbIjY_Hpovwx0BG9rWN5jlWORE3TtilcsKvSqUMdjJ40q_vmJsQBoP-vSrrQlgdB4q8Dg7QZ3ajzC-o.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, I don\u2019t know about you, but scrolling through those huge blobs becomes annoying pretty quickly \u2013 especially when you\u2019re trying to debug production issues, which is probably the most common use case for reading a log file.<\/p>\n\n\n\n<p>To streamline the experience of working with logs, the latest version of PhpStorm presents log files in a format that&#8217;s much easier to understand at a glance. They will now look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXe4ot_b62gyB6EuEhSdT-JEq8quKBtmfAxSkcoi7daU7INqJ_MOMHImuxm4kyLMuBSuZ0RjKQsyQx5fmHvgPnA-MAHDgqBuflCMBQPwnYJ3AK-q1IV3UeaIgJpRGDS7I4a3tu1amQqsZy7IPm6vwiD-sJXd.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can see how the lines are color-coded, errors are highlighted in the scroll bar, and links are styled and clickable. On top of that, bigger log files no longer affect PhpStorm\u2019s performance. A special new renderer for log files allows the IDE to highlight only the code that is visible at any given time, which drastically reduces the amount of memory and CPU needed. Naturally, when you scroll, any new lines that appear will be styled properly as well.<\/p>\n\n\n\n<p>Speaking of scrolling, another use case for log files is to tail them in a terminal window. We\u2019ve added the same styling on that output as well, which means that you can keep your log file open and any new lines will be automatically styled correctly:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXeOwrFYm-Rq7SvkjK6iyO1gPoQFs8QsNeAPyLb91WM0d5RSj3i5ofBhuM25D9QeoAtz2ulbKXFZ-1GPQW1DfXzb6glm3J-aqThQzDVYZT1QBdYD212zdovp8n3UVQpdBW5Bbdg7yx2Wpq92nQX1JmQWSzE.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Log files on remote servers<\/h2>\n\n\n\n<p>Another common use case is browsing production log files via SSH. Let\u2019s take a look at how that works in PhpStorm.&nbsp;<\/p>\n\n\n\n<p>First you need to configure an SSH connection, which you can do by going to <em>Settings <\/em>| <em>Tools <\/em>| <em>SSH Configurations<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXfpHBvcJO6JiPvqYsXZYkuhmdo95HHWUSqOezdboPqaJphX2UINekqvwS-I_cpxe4KoNaFfM_FEjhQxw7O91tfz8zggQiKBpDgFBvceRsHWpdLD-VYteJRpBKidyL4N-6a6Cqwr469oECaH9b-ciH2fAFZ3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Next, with the SSH configuration in place, you can start a new SSH session. Go to <em>Tools <\/em>| <em>Deployment <\/em>| <em>Browse Remote Host<\/em> and choose your newly created SSH configuration.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXeR2AKDESX6XOhRenjMWH5pbzZRuH7j82mijc1EJPLBxhxRFv-64CAqhWge6NSVmnr68O4MbnE6YswgbJQrAJY4DAg4y7e2F2yPAnnK9ewgB3vcb_vdlxHnPUoU1eqseeqZrQlxNrXZ8HfwnTWvavmCN38J.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>PhpStorm will open a new tool window for browsing the remote server. You can navigate to the log file, open it, and\u2026&nbsp;<\/p>\n\n\n\n<p>It looks just the same!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXdqKYNL30d5aA_Ft6Uudibdgrmh3q1Ajd3nm5Uv-XUxckLgZPdb2XuIza6J7Ya337rI4DNwr1bzV-yuKkZrM1O3yrB3ynmSD6SjPlVdWk8GMRsbnBg22VZOmBHvXx0J-51PNNq45wKiPyWOL7Tofcv2o7oP.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Pretty neat, right?<\/p>\n\n\n\n<p>Finally, let\u2019s talk about settings. You can go to <em>Settings <\/em>| <em>Editor <\/em>| <em>Log Highlighting<\/em> to configure how log files should be styled. You can enable or disable the heatmap (the colored scroll bar), choose whether links are highlighted, patterns, filters, and configure log formats (we\u2019ve got support for Laravel, Symfony, WordPress, and more).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXel8MBgiOttdGiIh1kDNW7DJaK8itq_2km2GOI99Pvr7bfwWHsCP3DyysmoOSQi_qY0bEGuVS-Qd36xuwuu_Pg7ExvOfFUYIVqmN7TzQQlEJUTscEh_2Upn1-EJGjbffDzXEgBTYOMz5XBzi9JUFYWWGpdo.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>The section that\u2019s probably most interesting is the patterns table, where you can change the styling of highlighted log entries. For example, I don\u2019t like errors being bold, so I can change the error pattern accordingly:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/AD_4nXfLh42fATOLYzuZupeyPtnXwOVDtG2-16Qd6W2-yOjG1tMnoPaHG0olu9l6VrJsFn8Hua00HcUL5CUqYCIUg3c0XJ3zmwAbhL8KBjHHgmFgsda1kf01GiJ6l222OoiKFeoyYzwWimrHD4cpR2Z3Q2QYE_Ma.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>On top of that, you can create your own patterns if you want to, which is pretty powerful if you want to create your own log highlighting rules, or if you\u2019re reading a log file whose format isn\u2019t supported out of the box.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">In closing<\/h2>\n\n\n\n<p>The new support for log files is quite impressive if you ask me. Introduced in PhpStorm 2024.2, you can experience it now by starting a <a href=\"https:\/\/www.jetbrains.com\/phpstorm\/download\/\" target=\"_blank\" rel=\"noopener\">30-day free trial<\/a> or simply updating your IDE if you\u2019re already a PhpStorm user.<\/p>\n","protected":false},"author":1326,"featured_media":499276,"comment_status":"closed","ping_status":"closed","template":"","categories":[2347],"tags":[8486,2213],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/499168"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/users\/1326"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/comments?post=499168"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/499168\/revisions"}],"predecessor-version":[{"id":614041,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/499168\/revisions\/614041"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/media\/499276"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/media?parent=499168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/categories?post=499168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/tags?post=499168"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/cross-post-tag?post=499168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}