1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Simplified code

This commit is contained in:
Christophe Coevoet
2011-05-06 19:48:34 +02:00
parent e059c441e0
commit 708d799e1d
3 changed files with 2 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ class LineFormatter implements FormatterInterface
*/ */
public function __construct($format = null, $dateFormat = null) public function __construct($format = null, $dateFormat = null)
{ {
$this->format = $format ?: self::SIMPLE_FORMAT; $this->format = $format ?: static::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: self::SIMPLE_DATE; $this->dateFormat = $dateFormat ?: static::SIMPLE_DATE;
} }
/** /**

View File

@@ -37,15 +37,6 @@ class WildfireFormatter extends LineFormatter implements FormatterInterface
Logger::ALERT => 'ERROR', Logger::ALERT => 'ERROR',
); );
/**
* {@inheritdoc}
*/
public function __construct($format = null, $dateFormat = null)
{
$this->format = $format ?: self::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: self::SIMPLE_DATE;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@@ -52,16 +52,6 @@ class FirePHPHandler extends AbstractHandler
*/ */
protected static $messageIndex = 1; protected static $messageIndex = 1;
/**
* @param integer $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
*/
public function __construct($level = Logger::DEBUG, $bubble = false)
{
$this->level = $level;
$this->bubble = $bubble;
}
/** /**
* Base header creation function used by init headers & record headers * Base header creation function used by init headers & record headers
* *