1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47: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)
{
$this->format = $format ?: self::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: self::SIMPLE_DATE;
$this->format = $format ?: static::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: static::SIMPLE_DATE;
}
/**

View File

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

View File

@@ -52,16 +52,6 @@ class FirePHPHandler extends AbstractHandler
*/
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
*