Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.29 KB

custom-logger-handler.md

File metadata and controls

24 lines (20 loc) · 1.29 KB
group title functional_areas contributor_name contributor_link
configuration-guide
Example - logging to a custom log file
Configuration
System
Setup
Atwix

The Magento\Framework\Logger module contains the following handler classes:

Class Log file
[Magento\Framework\Logger\Handler\Base]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Logger/Handler/Base.php) -
[Magento\Framework\Logger\Handler\Debug]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Logger/Handler/Debug.php) /var/log/debug.log
[Magento\Framework\Logger\Handler\Exception]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Logger/Handler/Exception.php) /var/log/exception.log
[Magento\Framework\Logger\Handler\Syslog]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Logger/Handler/Syslog.php) -
[Magento\Framework\Logger\Handler\System]({{ site.mage2bloburl }}/{{ page.guide_version }}/lib/internal/Magento/Framework/Logger/Handler/System.php) /var/log/system.log

You may find them in the lib/internal/Magento/Framework/Logger/Handler directory.

{% include config-guide/custom-logger-handler-examples.md %}