All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #99 adds
Zend\Log\PsrLoggerAbstractAdapterFactory
, which will create instances ofPsrLoggerAdapter
. Usage is exactly like withZend\Log\LoggerAbstractServiceFactory
, with the exception that it looks under thepsr_log
configuration key instead of thelog
key for logger configuration.
- #100 updates the psr/log constraint to 1.1.2, removing the need for an extra autoloader in this package.
- Nothing.
- Nothing.
- Nothing.
-
#96 adds support for PHP 7.3.
-
#83 adds ability to define custom ignored namespaces in addition to default
Zend\Log
inBacktrace
processor.
- Nothing.
- Nothing.
- #88 removes support for HHVM.
- Nothing.
- #58 adds the class
Zend\Log\Formatter\Json
, which will format log lines as individual JSON objects.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #79 and
#86 provide fixes to
ensure the
FingersCrossed
,Mongo
, andMongoDB
writers work under PHP 7.2.
- Nothing.
- Nothing.
- Nothing.
- #74 fixes how the various
plugin manager factories initialize the plugin manager instances, ensuring
they are injecting the relevant configuration from the
config
service and thus seeding them with configured plugin services. This means that thelog_processors
,log_writers
,log_filters
, andlog_formatters
configuration will now be honored in non-zend-mvc contexts. - #62 fixes registration of
the alias and factory for the
PsrPlaceholder
processor plugin. - #66 fixes the namespace
of the
LogFormatterProviderInterface
when registering theLogFormatterManager
with the zend-modulemanagerServiceListener
. - #67 ensures that content
being injected into a DOM node by
Zend\Log\Formatter\Xml
is escaped so that XML entities will be properly emitted. - #73 adds a missing import
statement to the
Psr
log writer.
- #53 adds a suggestion to the package definition of ext/mongodb, for those who want to use the MongoDB writer.
- Nothing.
- Nothing.
- #56 fixes an edge case
with the
AbstractWriter
whereby instantiating aZend\Log\Writer\FormatterPluginManager
orFilterPluginManager
prior to creating a writer instance would lead to a naming conflict. New aliases were added to prevent the conflict going forwards.
-
#46 adds the ability to specify log writer, formatter, filter, and processor plugin configuration via the new top-level keys:
log_filters
log_formatters
log_processors
log_writers
These follow the same configuration patterns as any other service manager/plugin manager as implemented by zend-servicemanager.
Additionally, 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.
- Nothing.
- Removes support for PHP 5.5.
- #38 adds the
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.
- Nothing.
- Nothing.
- Nothing.
- Corrected licence headers across files within the project
- Nothing.
- Nothing.
- Nothing.
- #43 fixes the
Module::init()
method to properly receive aModuleManager
instance, and not expect aModuleEvent
.
- #40 adds the
LogFilterProviderInterface
andLogFormatterProviderInterface
referenced in theModule
class starting in 2.8.0.
- Nothing.
- Nothing.
- Nothing.
- #39 adds the following
factory classes for the exposed plugin managers in the component:
Zend\Log\FilterPluginManagerFactory
, which returnsFilterPluginManager
instances.Zend\Log\FormatterPluginManagerFactory
, which returnsFormatterPluginManager
instances.Zend\Log\ProcessorPluginManagerFactory
, which returnsProcessorPluginManager
instances.Zend\Log\WriterPluginManagerFactory
, which returnsWriterPluginManager
instances.
- #39 exposes the
package as a ZF component and/or generic configuration provider, by adding the
following:
ConfigProvider
, which maps the available plugin managers to the corresponding factories as listed above, maps theLogger
class to theLoggerServiceFactory
, and registers theLoggerAbstractServiceFactory
as an abstract factory.Module
, which does the same asConfigProvider
, but specifically for zend-mvc applications. It also provices a specifications toZend\ModuleManager\Listener\ServiceListener
to allow modules to provide configuration for log filters, formatters, processors, and writers.
- Nothing.
- Nothing.
- Nothing.
- #30 adds documentation for each of the supported log writers.
- Nothing.
- Nothing.
- #33 fixes an issue with
executing
chmod
on files mounted via NFS on an NTFS partition when using the stream writer.
- Nothing.
- Nothing.
- Nothing.
- #28 restores the "share
by default" flag settings of all plugin managers back to boolean
false
, allowing multiple instances of each plugin type. (This restores backwards compatibility with versions prior to 2.7.)
- #7 and
#15 add a new argument
and option to
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 thechmod
option if using an options array. - #10 adds
array
to the expected return types fromZend\Log\Formatter\FormatterInterface::format()
, codifying what we're already allowing. - #24 prepares the documentation for publication, adds a chapter on processors, and publishes it to https://zendframework.github.io/zend-log/
- #14 deprecates the
following, suggesting the associated replacements:
Zend\Log\Writer\FilterPluginManager
is deprecated; useZend\Log\FilterPluginManager
instead.Zend\Log\Writer\FormatterPluginManager
is deprecated; useZend\Log\FormatterPluginManager
instead.
- Nothing.
- #14 and #17 update the component to be forwards-compatible with zend-stdlib and zend-servicemanager v3.
- #6 adds
PSR-3 support to zend-log:
Zend\Log\PsrLoggerAdapter
allows you to decorate aZend\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 withZend\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.
- Nothing.
- Nothing.
- Nothing.
-
#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.
- Nothing.