zendframework/zend-log
Zend Log is a PHP logging component for writing messages to multiple backends (files, syslog, databases, email) with flexible formatting, filters, and priorities. Part of Zend Framework, it helps you capture, route, and manage application logs reliably.
composer require zendframework/zend-logZend\Log\Logger and attach writers (e.g., Zend\Log\Writer\Stream for file logging)$logger = new Zend\Log\Logger();
$logger->addWriter(new Zend\Log\Writer\Stream('data/logs/app.log'));
$logger->err('Something went wrong');
src/Logger.php and src/Writer/ for core classes.Zend\Log\Formatter\JsonFormatter or custom formatters to emit JSON logs for compatibility with modern log aggregators (e.g., ELK, Datadog)Zend\Log\Filter\Priority) to suppress low-priority messages in production:
$writer->addFilter(new Zend\Log\Filter\Priority(Zend\Log\Logger::WARNING));
LoggerInterface and wire up with ZendLogFactory in Zend Expressive/Laminas applicationsZend\Log\Logger as a PSR-3 logger (it implements Psr\Log\LoggerInterface) for drop-in compatibility with PSR-compliant toolsZend\Log\Writer\Stream and buffered writers to batch writes for performance-critical flowslaminas/laminas-log (composer require laminas/laminas-log) to receive ongoing fixesZend\* references in your config or factoriesZend\Log\Logger::DEBUG in development to trace internal behavior—check Zend\Log\Logger::DEBUG vs. Zend\Log\Logger::NOTICE priorities for granular controlHow can I help you explore Laravel packages today?