Download the PHP package shalvah/monolog-pusher without Composer
On this page you can find all versions of the php package shalvah/monolog-pusher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package monolog-pusher
monolog-pusher
Monolog handler that sends logs to Pusher Channels.
Installation
Usage
-
Create a new
PusherHandler
, passing in the Pusher constructor options as an array: -
Alternatively, if you've already got an existing
Pusher
instance, you can pass that to the handler: -
Attach the handler to your Monolog logger:
- Now you can call the various log methods (
info
,error
,debug
and so forth) on your logger to send a log message to Pusher. The name of the Pusher channel used will be the name you set when creating yourLogger
(in the above example, "pusher-logs"). The name of the event will belog
:
By default, the PusherHandler
will only log messages of level error and above. You can change this by passing a minimum level as a second parameter to the constructor:
All versions of monolog-pusher with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 7.2
pusher/pusher-php-server Version ^4.0 | ^5.0 | ^6.0
monolog/monolog Version ^2.0
pusher/pusher-php-server Version ^4.0 | ^5.0 | ^6.0
monolog/monolog Version ^2.0
The package shalvah/monolog-pusher contains the following files
Loading the files please wait ....