Log files are not writing in the log folder but previously they are writing in the folder. Any idea about this?.
There are several possible options here:
- Logs have been disabled under System > Configuration > Developer > Log Settings > Enabled
- Your server is full and thus can't write to the logs anymore.
- Maybe there's nothing to log (which is a good thing as that means there's no error/warning to log on your website)
- Maybe your
var/logfolder permissions have changed and thus Magento cannot write to this folder anymore.
In 22.214.171.124 (or after applying SUPEE-11086 patch) if you delete "/var/log/system.log" log file becomes "not writeable" (even if directory is writeable), so Magento skips writing log.
- make sure "/var/log/" is writeable
- create empty "/var/log/system.log" there
- and/or wait when it will be fixed by Magento devs
I've found that if SELinux is not set properly for Magento, nothing gets written to the Magento logs, but instead goes to the /tmp location. Try 'setenforce Permissive' to disable SELinux. If the logs begin to receive output, then SELinux was to blame. Unfortunately, I do not know how to allow the Magento user (on CentOS it's apache) to write to the log files. With SELinux, even setting permissions on that file to 777 doesn't help.
So, by disabling SELinux with 'setenforce Permissive', just remember that after a reboot, it will be enabled again.
Check under /tmp/magento
When magento has a problem writing to var/logs|cache|sessions, sometimes it writes to /tmp/magento/var/* instead, which is the default location.
Even once the original issue is fixed it often keeps writing them to /tmp/magento/var/log.