1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 22:26:41 +02:00
This commit is contained in:
Jordi Boggiano
2014-07-28 20:40:43 +02:00
parent c82120fea3
commit 6397b5883b
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class FingersCrossedHandler extends AbstractHandler
* @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true) * @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true)
* @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered * @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered
*/ */
public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = NULL) public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null)
{ {
if (null === $activationStrategy) { if (null === $activationStrategy) {
$activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING); $activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING);
@@ -116,7 +116,7 @@ class FingersCrossedHandler extends AbstractHandler
*/ */
public function close() public function close()
{ {
if (NULL !== $this->passthruLevel) { if (null !== $this->passthruLevel) {
$level = $this->passthruLevel; $level = $this->passthruLevel;
$this->buffer = array_filter($this->buffer, function ($record) use ($level) { $this->buffer = array_filter($this->buffer, function ($record) use ($level) {
return $record['level'] >= $level; return $record['level'] >= $level;

View File

@@ -156,7 +156,7 @@ class SlackHandler extends SocketHandler
* Returned a Slack message attachment color associated with * Returned a Slack message attachment color associated with
* provided level. * provided level.
* *
* @param int $level * @param int $level
* @return string * @return string
*/ */
protected function getAttachmentColor($level) protected function getAttachmentColor($level)