Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Releases: zendframework/zend-log

zend-log 2.8.0

06 Apr 22:35
Compare
Choose a tag to compare

Added

  • #39 adds the following factory classes for the exposed plugin managers in the component:
    • 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.
  • #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 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.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-log 2.7.2

06 Apr 22:30
Compare
Choose a tag to compare

Added

  • #30 adds documentation for each of the supported log writers.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #33 fixes an issue with executing chmod on files mounted via NFS on an NTFS partition when using the stream writer.

zend-log 2.7.1

18 Feb 17:22
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #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.)

zend-log 2.7.0

09 Feb 22:57
Compare
Choose a tag to compare

Added

  • #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 the chmod option if using an options array.
  • #10 adds array to the expected return types from Zend\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/

Deprecated

  • #14 deprecates the following, suggesting the associated replacements:
    • Zend\Log\Writer\FilterPluginManager is deprecated; use Zend\Log\FilterPluginManager instead.
    • Zend\Log\Writer\FormatterPluginManager is deprecated; use Zend\Log\FormatterPluginManager instead.

Removed

  • Nothing.

Fixed

  • #14 and #17 update the component to be forwards-compatible with zend-stdlib and zend-servicemanager v3.

zend-log 2.6.0

20 Jul 17:45
Compare
Choose a tag to compare

Added

  • #6 adds PSR-3 support to zend-log:
    • 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.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-log 2.5.2

06 Jul 21:36
Compare
Choose a tag to compare

Added

  • #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',
        ],
    ],
]);

Deprecated

  • Nothing.

Removed

  • #43 removed both ServerRequestFactory::marshalUri() and ServerRequestFactory::marshalHostAndPort(), which were deprecated prior to the 1.0 release.

Fixed

  • #4 adds better, more complete verbiage to the composer.json suggest section, to detail why and when you might need additional dependencies.
  • #1 updates the code to remove conditionals related to PHP versions prior to PHP 5.5, and use bound closures in tests (not possible before 5.5).