Browse Source

Merge branch '1.x'

Jordi Boggiano 6 năm trước cách đây
mục cha
commit
a053af62ad
4 tập tin đã thay đổi với 12 bổ sung8 xóa
  1. 3 0
      .github/ISSUE_TEMPLATE.md
  2. 0 6
      .php_cs
  3. 8 1
      CHANGELOG.md
  4. 1 1
      composer.json

+ 3 - 0
.github/ISSUE_TEMPLATE.md

@@ -0,0 +1,3 @@
+I am using Monolog version 1|2
+
+... the problem/suggestion/question here ...

+ 0 - 6
.php_cs

@@ -13,12 +13,6 @@ $finder = PhpCsFixer\Finder::create()
     ->files()
     ->name('*.php')
     ->exclude('Fixtures')
-    // The next 4 files are here for forward compatibility, and are not used by
-    // Monolog itself
-    ->exclude(__DIR__.'src/Monolog/Handler/FormattableHandlerInterface.php')
-    ->exclude(__DIR__.'src/Monolog/Handler/FormattableHandlerTrait.php')
-    ->exclude(__DIR__.'src/Monolog/Handler/ProcessableHandlerInterface.php')
-    ->exclude(__DIR__.'src/Monolog/Handler/ProcessableHandlerTrait.php')
     ->in(__DIR__.'/src')
     ->in(__DIR__.'/tests')
 ;

+ 8 - 1
CHANGELOG.md

@@ -1,3 +1,8 @@
+### 2.0.1 (xx)
+
+  * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB).
+  * Fixed type error in BrowserConsoleHandler when the context array of log records was not associative.
+
 ### 2.0.0 (2019-08-30)
 
   * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release
@@ -47,16 +52,18 @@
   * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler
   * Fixed many minor issues in various handlers, and probably added a few regressions too
 
-### 1.25.0 (xx)
+### 1.25.0 (2019-09-06)
 
   * Deprecated SlackbotHandler, use SlackWebhookHandler or SlackHandler instead
   * Deprecated RavenHandler, use sentry/sentry 2.x and their Sentry\Monolog\Handler instead
   * Deprecated HipChatHandler, migrate to Slack and use SlackWebhookHandler or SlackHandler instead
+  * Added forward-compatible interfaces and traits FormattableHandlerInterface, FormattableHandlerTrait, ProcessableHandlerInterface, ProcessableHandlerTrait. If you use modern PHP and want to make code compatible with Monolog 1 and 2 this can help. You will have to require at least Monolog 1.25 though.
   * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler
   * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records
   * Fixed issue in SignalHandler restarting syscalls functionality
   * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases
   * Fixed ZendMonitorHandler to work with the latest Zend Server versions
+  * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB).
 
 ### 1.24.0 (2018-11-05)
 

+ 1 - 1
composer.json

@@ -61,7 +61,7 @@
     },
     "scripts": {
         "test": [
-            "parallel-lint . --exclude vendor --exclude src/Monolog/Handler/FormattableHandlerInterface.php  --exclude src/Monolog/Handler/FormattableHandlerTrait.php --exclude src/Monolog/Handler/ProcessableHandlerInterface.php --exclude src/Monolog/Handler/ProcessableHandlerTrait.php",
+            "parallel-lint . --exclude vendor",
             "phpunit"
         ]
     },