magento2-stdlogging icon indicating copy to clipboard operation
magento2-stdlogging copied to clipboard

[FEAT] Magento CRON logs to stdout

Open gitrequests opened this issue 2 years ago • 0 comments

:bulb: Feature request

Magento CRON logs to stdout

As written in the documentation here from version Magento 2.3.1 CRON logs are sent to a separate file (<install-directory>/var/log/cron.log). In the Docker environment, they can also be sent to standard output.

I found that the cron log configuration is available in <install-directory>/vendor/magento/module-cron/etc/di.xml. Here are two virtual types: Magento\Cron\Model\VirtualLogger and Magento\Cron\Model\VirtualLoggerHandler.

Environment

magento2-stdlogging version: 2.0.0
Magento version: 2.4.6 
PHP Version version: 8.2.4 

gitrequests avatar Nov 03 '23 15:11 gitrequests