mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 06:06:40 +02:00
Merge branch '1.x'
This commit is contained in:
@@ -98,5 +98,5 @@ Monolog is licensed under the MIT License - see the `LICENSE` file for details
|
|||||||
|
|
||||||
### Acknowledgements
|
### Acknowledgements
|
||||||
|
|
||||||
This library is heavily inspired by Python's [Logbook](http://packages.python.org/Logbook/)
|
This library is heavily inspired by Python's [Logbook](https://logbook.readthedocs.io/en/stable/)
|
||||||
library, although most concepts have been adjusted to fit to the PHP world.
|
library, although most concepts have been adjusted to fit to the PHP world.
|
||||||
|
@@ -18,6 +18,9 @@ use Monolog\Logger;
|
|||||||
*
|
*
|
||||||
* @author Haralan Dobrev <hkdobrev@gmail.com>
|
* @author Haralan Dobrev <hkdobrev@gmail.com>
|
||||||
* @see https://slack.com/apps/A0F81R8ET-slackbot
|
* @see https://slack.com/apps/A0F81R8ET-slackbot
|
||||||
|
* @deprecated According to Slack the API used on this handler it is deprecated.
|
||||||
|
* Therefore this handler will be removed on 2.x
|
||||||
|
* Slack suggests to use webhooks instead. Please contact slack for more information.
|
||||||
*/
|
*/
|
||||||
class SlackbotHandler extends AbstractProcessingHandler
|
class SlackbotHandler extends AbstractProcessingHandler
|
||||||
{
|
{
|
||||||
@@ -48,6 +51,7 @@ class SlackbotHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
public function __construct(string $slackTeam, string $token, string $channel, $level = Logger::CRITICAL, bool $bubble = true)
|
public function __construct(string $slackTeam, string $token, string $channel, $level = Logger::CRITICAL, bool $bubble = true)
|
||||||
{
|
{
|
||||||
|
@trigger_error('SlackbotHandler is deprecated and will be removed on 2.x', E_USER_DEPRECATED);
|
||||||
parent::__construct($level, $bubble);
|
parent::__construct($level, $bubble);
|
||||||
|
|
||||||
$this->slackTeam = $slackTeam;
|
$this->slackTeam = $slackTeam;
|
||||||
|
Reference in New Issue
Block a user