larawatchpro / logger
Redirects your log events to your LaraWatchPro account
v1.0.0
2024-03-11 11:15 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: >=6.0
- illuminate/support: >=6.0
Requires (Dev)
- orchestra/testbench: ~3.5.0|~3.6.0|~3.7.0|^3.8
- phpunit/phpunit: 6.2|^7.0|^8.3
README
This package has been heavily inspired by the Larahawk Watcher package. Since the service seems to be dead, I decided to rewrite it almost from scratch.
This watcher package listens for exceptions and log events from your Laravel application and reports them back to your LaraWatchPro account.
Installation
- Create a LarawatchPro account, or host your own server !
- Install this package using
composer require larawatchpro/logger
- Make any desired adjustments to the watcher using the package's config file
- Declare the logger in your
config/logging.php
file :'channels' => [ 'larawatch' => [ 'driver' => 'custom', 'via' => LarawatchLogger\Logger::class, ],
- Add your project's API key and server URL to the application's
.env
file. - Change your logger in
.env
toLOG_CHANNEL=larawatch
Contributing and Support
Feel free to submit any issues you might have with this package, but please search through previously-added ones first. All contributions are welcome!
License
The MIT License (MIT). See LICENSE.md for more details.