home/categories/ecommerce-development/tuanhaviet22-magento-skills-skills-magento2-custom-logger-skill-md
ecommerce-developmentdevelopment

magento2-custom-logger

Custom per-class log files in Magento 2 using di.xml virtual types — no PHP class needed. Use when the user says "custom logger", "dedicated log file", "separate log file", "log to my own file", "virtual type logger", or wants a Console Command / Service to write to a specific var/log/ path. DO NOT use for general Magento logging via \Psr\Log\LoggerInterface already injected by the framework, or for frontend/JS logging.

tuanhaviet22
maintainer
tuanhaviet22
اپ ڈیٹ ہوا 3/5/2026
اسٹارز
4
فورکس
1
quick start

Installation and usage

Custom per-class log files in Magento 2 using di.xml virtual types — no PHP class needed. Use when the user says "custom logger", "dedicated log file", "separate log file", "log to my own file", "virtual type logger", or wants a Console Command / Service to write to a specific var/log/ path. DO NOT use for general Magento logging via \Psr\Log\LoggerInterface already injected by the framework, or for frontend/JS logging.

انسٹالیشن
$ install --globalskills.sh
استعمال

انسٹال کرنے کے بعد، آپ یہ اسکل ٹرمینل میں درج ذیل کمانڈ چلا کر استعمال کر سکتے ہیں:

skills use magento2-custom-logger