In this blog we are going to Create Custom Log File in magento2. When we work on custom feature then we need a custom log for to write custom feature’s log so we can easily debug log.We are going to create date wise log so its easy for debug. Before start, If you are not familier with create custom module magento2 the follow link? Create Virtual Type We need to create virtual type class MageDad\Module\Logger\CustomLogger…
As we have lots files on server var/log folder. so I have tips for debug logs in adobe cloud or on-premises. Let’s start to analyse logs in magento2.Here is three tips for analyse logs.1. You can monitor live logs using below command. When you run command then you can see live logs.tail -f var/log/*.log 2. If you want to check specific error in old log files then run bewlo command.grep -r ‘error xyz’ var/log/* 3.…