NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #5344 most downloaded on Packagist
Robust, composite logger with filtering, formatting, and PSR-3 support
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
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
One column per quarter.
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 ModuleMana
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 is
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #28 restores the "share by default" flag settings of all plugin mana
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', ], ], ]); `
#2 adds
the ability to specify the mail transport via the configuration options for a
mail log writer, using the same format supported by
Zend\Mail\Transport\Factory::create(); as an example:
$writer = new MailWriter([
'mail' => [
// message options
],
'transport' => [
'type' => 'smtp',
'options' => [
'host' => 'localhost',
],
],
]);
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
Your coding agent can read these notes before it upgrades. Set up the MCP server →