forked from yffaffy/rollbar
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies to the latest versions
- Loading branch information
1 parent
8c8dc1c
commit 3804879
Showing
134 changed files
with
3,140 additions
and
985 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,17 @@ | |
|
||
namespace Monolog\Handler; | ||
|
||
use Monolog\Logger; | ||
use Monolog\Formatter\FormatterInterface; | ||
use Monolog\Formatter\LineFormatter; | ||
use Monolog\Logger; | ||
use Monolog\ResettableInterface; | ||
|
||
/** | ||
* Base Handler class providing the Handler structure | ||
* | ||
* @author Jordi Boggiano <[email protected]> | ||
*/ | ||
abstract class AbstractHandler implements HandlerInterface | ||
abstract class AbstractHandler implements HandlerInterface, ResettableInterface | ||
{ | ||
protected $level = Logger::DEBUG; | ||
protected $bubble = true; | ||
|
@@ -32,8 +33,8 @@ abstract class AbstractHandler implements HandlerInterface | |
protected $processors = array(); | ||
|
||
/** | ||
* @param int $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 | ||
* @param int $level The minimum logging level at which this handler will be triggered | ||
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not | ||
*/ | ||
public function __construct($level = Logger::DEBUG, $bubble = true) | ||
{ | ||
|
@@ -141,8 +142,8 @@ public function getLevel() | |
/** | ||
* Sets the bubbling behavior. | ||
* | ||
* @param Boolean $bubble true means that this handler allows bubbling. | ||
* false means that bubbling is not permitted. | ||
* @param bool $bubble true means that this handler allows bubbling. | ||
* false means that bubbling is not permitted. | ||
* @return self | ||
*/ | ||
public function setBubble($bubble) | ||
|
@@ -155,8 +156,8 @@ public function setBubble($bubble) | |
/** | ||
* Gets the bubbling behavior. | ||
* | ||
* @return Boolean true means that this handler allows bubbling. | ||
* false means that bubbling is not permitted. | ||
* @return bool true means that this handler allows bubbling. | ||
* false means that bubbling is not permitted. | ||
*/ | ||
public function getBubble() | ||
{ | ||
|
@@ -174,6 +175,15 @@ public function __destruct() | |
} | ||
} | ||
|
||
public function reset() | ||
{ | ||
foreach ($this->processors as $processor) { | ||
if ($processor instanceof ResettableInterface) { | ||
$processor->reset(); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Gets the default formatter. | ||
* | ||
|
Oops, something went wrong.