NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4875 most downloaded on Packagist
Robust, composite logger with filtering, formatting, and PSR-3 support
Latest stable
2.12.0
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 1.4 years
Some releases are documented
notes for 16 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
76 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
Added #99 adds Zend\Log\PsrLoggerAbstractAdapterFactory , which will create instances of PsrLoggerAdapter . Usage is exactly like with Zend\Log\Logger
Zend\Log\PsrLoggerAbstractAdapterFactory, which will create instances of PsrLoggerAdapter. Usage is exactly like with Zend\Log\LoggerAbstractServiceFactory, with the exception that it looks under the psr_log configuration key instead of the log key for logger configuration.Added #96 adds support for PHP 7.3. #83 adds ability to define custom ignored namespaces in addition to default Zend\Log in Backtrace processor. Chang
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added #58 adds the class Zend\Log\Formatter\Json , which will format log lines as individual JSON objects. Deprecated Nothing. Removed Nothing. Fixed
Zend\Log\Formatter\Json, which will format log lines as individual JSONAdded Nothing. Deprecated Nothing. Removed Nothing. Fixed #79 and #86 provide fixes to ensure the FingersCrossed , Mongo , and MongoDB writers work un
Added Nothing. Deprecated Nothing. Removed Nothing. Fixed #74 fixes how the various plugin manager factories initialize the plugin manager instances,
config service and thus seeding them with configured plugin services. This means that the log_processors, log_writers, log_filters, and log_formatters configuration will now be honored in non-zend-mvc contexts.PsrPlaceholder processor plugin.LogFormatterProviderInterface when registering the LogFormatterManager with the zend-modulemanager ServiceListener.Zend\Log\Formatter\Xml is escaped so that XML entities will be properly emitted.Psr log writer.Added #53 adds a suggestion to the package definition of ext/mongodb, for those who want to use the MongoDB writer. Deprecated Nothing. Removed Nothin
AbstractWriter whereby instantiating a Zend\Log\Writer\FormatterPluginManager or FilterPluginManager prior to creating a writer instance would lead to a naming conflict. New aliases were added to prevent the conflict going forwards.log_writers These follow the same configuration patterns as any other service manager/plugin manager as implemented by zend-servicemanager.
#46 adds the ability to specify log writer, formatter, filter, and processor plugin configuration via the new top-level keys:
log_filterslog_formatterslog_processorslog_writersAdditionally, you can now specify filer, formatter, and processor services when specifying writer configuration for a logger, as these are now backed by the above plugin managers.
MongoDb writer to the list of available writer plugins; the writer was added in a previous release, but never enabled within the default set of writers.Corrected licence headers across files within the project
## Added - Nothing. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #43 fixes the Module::init() method to properly receive a ModuleManager
Module::init() method to properly receive a ModuleManager instance, and not expect a ModuleEvent.## Added - #40 adds the LogFilterProviderInterface and LogFormatterProviderInterface referenced in the Module class starting in 2.8.0. ## Deprecated -
LogFilterProviderInterface and LogFormatterProviderInterface referenced in the Module class starting in 2.8.0.Zend\Log\FilterPluginManagerFactory, which returns FilterPluginManager instances.
Zend\Log\FilterPluginManagerFactory, which returns FilterPluginManager instances.Zend\Log\FormatterPluginManagerFactory, which returns FormatterPluginManager instances.Zend\Log\ProcessorPluginManagerFactory, which returns ProcessorPluginManager instances.Zend\Log\WriterPluginManagerFactory, which returns WriterPluginManager instances.ConfigProvider, which maps the available plugin managers to the corresponding factories as listed above, maps the Logger class to the LoggerServiceFactory, and registers the LoggerAbstractServiceFactory as an abstract factory.Module, which does the same as ConfigProvider, but specifically for zend-mvc applications. It also provices a specifications to Zend\ModuleManager\Listener\ServiceListener to allow modules to provide configuration for log filters, formatters, processors, and writers.## Added - #30 adds documentation for each of the supported log writers. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #33 fixes an issue
## Added - Nothing. ## Deprecated - Nothing. ## Removed - Nothing. ## Fixed - #28 restores the "share by default" flag settings of all plugin managers
false, allowing multiple instances of each plugin type. (This restores backwards compatibility with versions prior to 2.7.)Zend\Log\Writer\FilterPluginManager is deprecated; use Zend\Log\FilterPluginManager instead.
Zend\Log\Writer\Stream to allow setting the permission mode for the stream. You can pass it as the optional fourth argument to the constructor, or as the chmod option if using an options array.array to the expected return types from Zend\Log\Formatter\FormatterInterface::format(), codifying what we're already allowing.Zend\Log\Writer\FilterPluginManager is deprecated; use Zend\Log\FilterPluginManager instead.Zend\Log\Writer\FormatterPluginManager is deprecated; use Zend\Log\FormatterPluginManager instead.Zend\Log\PsrLoggerAdapter allows you to decorate a Zend\Log\LoggerInterface instance so it can be used wherever a PSR-3 logger is expected.
Zend\Log\PsrLoggerAdapter allows you to decorate a Zend\Log\LoggerInterface instance so it can be used wherever a PSR-3 logger is expected.Zend\Log\Writer\Psr allows you to decorate a PSR-3 logger instance for use as a log writer with Zend\Log\Logger.Zend\Log\Processor\PsrPlaceholder allows you to use PSR-3-compliant message placeholders in your log messages; they will be substituted from corresponding keys of values passed in the $extra array when logging the message.` php $writer = new MailWriter([ 'mail' => [ // message options ], 'transport' => [ 'type' => 'smtp', 'options' => [ 'host' => 'localhost', ], ], ]);
Zend\Mail\Transport\Factory::create(); as an example:$writer = new MailWriter([
'mail' => [
// message options
],
'transport' => [
'type' => 'smtp',
'options' => [
'host' => 'localhost',
],
],
]);
ServerRequestFactory::marshalUri() and ServerRequestFactory::marshalHostAndPort(), which were deprecated prior to the 1.0 release.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.