Преглед изворни кода

Remove unnecessary ErrorLogFormatter, refs #357

Jordi Boggiano пре 11 година
родитељ
комит
e9b8649151
2 измењених фајлова са 2 додато и 22 уклоњено
  1. 0 20
      src/Monolog/Formatter/ErrorLogFormatter.php
  2. 2 2
      src/Monolog/Handler/ErrorLogHandler.php

+ 0 - 20
src/Monolog/Formatter/ErrorLogFormatter.php

@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * @author Henrique Moody <henriquemoody@gmail.com>
- */
-class ErrorLogFormatter extends LineFormatter
-{
-    const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%";
-}

+ 2 - 2
src/Monolog/Handler/ErrorLogHandler.php

@@ -11,7 +11,7 @@
 
 namespace Monolog\Handler;
 
-use Monolog\Formatter\ErrorLogFormatter;
+use Monolog\Formatter\LineFormatter;
 use Monolog\Logger;
 
 /**
@@ -59,7 +59,7 @@ class ErrorLogHandler extends AbstractProcessingHandler
      */
     protected function getDefaultFormatter()
     {
-        return new ErrorLogFormatter();
+        return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
     }
 
     /**