mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Simplified code
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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}
|
||||||
*/
|
*/
|
||||||
|
@@ -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
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user