-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from OxCom/develop
update configuration
- Loading branch information
Showing
20 changed files
with
387 additions
and
113 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace SymfonyRollbarBundle\Provider; | ||
|
||
/** | ||
* Interface InterfaceCustomData | ||
* | ||
* @package SymfonyRollbarBundle\Provider | ||
*/ | ||
interface InterfaceCustomData | ||
{ | ||
/** | ||
* @param \Exception|\Throwable|string $toLog | ||
* @param mixed $context | ||
* | ||
* @return array | ||
*/ | ||
public function __invoke($toLog, $context); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace SymfonyRollbarBundle\Provider; | ||
|
||
/** | ||
* Interface InterfaceLogger | ||
* | ||
* @package SymfonyRollbarBundle\Provider | ||
*/ | ||
interface InterfaceLogger | ||
{ | ||
/** | ||
* @param mixed $level | ||
* @param string $message | ||
* | ||
* @return void | ||
*/ | ||
public function log($level, $message); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Configuration: Check Ignore | ||
============= | ||
|
||
The function called before sending payload to Rollbar, return true to stop the error from being sent to Rollbar. | ||
|
||
Examples | ||
------------------ | ||
Use globally defined function: | ||
|
||
.. code-block:: yaml | ||
symfony_rollbar: | ||
# ... | ||
rollbar: | ||
# ... | ||
check_ignore: 'function_name_here' | ||
Use custom ``CheckIgnoreProvider`` class that should implements ``InterfaceCheckIgnore``: | ||
|
||
.. code-block:: yaml | ||
symfony_rollbar: | ||
# ... | ||
rollbar: | ||
# ... | ||
check_ignore: '\SymfonyRollbarBundle\Tests\Fixtures\CheckIgnoreProvider' | ||
Use custom ``CheckIgnoreProvider`` service that class should implements ``InterfaceCheckIgnore``: | ||
|
||
.. code-block:: yaml | ||
symfony_rollbar: | ||
# ... | ||
rollbar: | ||
# ... | ||
check_ignore: 'awesome_app.rollbar_check_ignore_provider' | ||
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
Oops, something went wrong.