restray / discordlogger
:description
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/restray/discordlogger
Requires
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
README
Package to auto-send the logs to a Discord server.
Installation
Via Composer
$ composer require restray/discordlogger
Publish the configuration :
php artisan vendor:publish --provider=Restray\\DiscordLogger\\Providers\\MonologDiscordServiceProvider
Add the driver to logging file :
'channels' => [ ..., 'discord' => [ 'driver' => 'monolog', 'handler' => Restray\DiscordLogger\Handler\DiscordHandler::class ], 'discord-single' => [ 'driver' => 'stack', 'channels' => ['single', 'discord'], ], ..., ],
Usage
Use the Driver on all of your project :
In your .env :
LOG_CHANNEL=discord-single
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email contact@restray.org instead of using the issue tracker.
Credits
License
Apache2.0. Please see the license file for more information.