Skip to content

A monolog handler that sends logs to a Rocket.Chat WebHook URL

License

Notifications You must be signed in to change notification settings

PROCERGS/rocketchat-monolog-handler

Repository files navigation

Rocket.Chat Monolog Handler

A monolog handler that sends logs to a Rocket.Chat WebHook URL.

use Monolog\Logger;
use PROCERGS\Handler\RocketChatHandler;

$url = 'https://demo.rocket.chat/hooks/p2FPjabaKRMucOPxV/eyN8tKpRII2H62Z8k189O7DP9nznU1I2xr0DmmkyeWTkQqs0';
$channel = 'my-channel';
$username = 'Some.User';

$logger = new Logger('my_logger');
$logger->pushHandler(new RocketChatHandler($url, $channel, $username));

$logger->crit('Something');

About

A monolog handler that sends logs to a Rocket.Chat WebHook URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages