Log in
Model

Syslog

Magento\Developer\Model\Logger\Handler\Syslog

What it does

This class is a specialized Monolog handler that controls whether system log (syslog) messages should be written based on deployment configuration settings.

Developers use this to enable or disable syslog functionality in Magento 2, which is particularly useful in production environments where centralized logging is needed.

It extends the framework's base Syslog handler and adds checks for database availability and deployment configuration before processing log records.

Public Methods

  • isHandling()