Magento 2 Custom Log File with Monolog (No Extra Classes)
Write Magento 2 logs to a custom file with Monolog using virtual types in di.xml, plus custom handlers, log levels, exception context and log rotation tips.
3 articles
Write Magento 2 logs to a custom file with Monolog using virtual types in di.xml, plus custom handlers, log levels, exception context and log rotation tips.
A practical guide to Magento 2 dependency injection: di.xml arguments, preferences, virtual types, area scoping, shared instances and how to debug it all.
How plugins, observers and preferences work in Magento 2.4.8, what each cannot do, and a checklist for choosing the one that survives upgrades and extensions.