starring-jane / logging
Logging made for use inside laravel apps
Installs: 1 379
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.1
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
- laravel-notification-channels/microsoft-teams: ^1.1
- monolog/monolog: ^3.4
Requires (Dev)
- pestphp/pest: ^2.16
README
#Starring Jane logging tool for Laravel
Available channels
- Teams
- Loggly
Installation
Run the composer install command to install the package
composer require starring-jane/logging
Configuration
Optionally you can publish the config file with:
php artisan vendor:publish --provider="StarringJane\Logging\LoggingServiceProvider" --tag="config"
Set up the following environment variables in your .env file:
TEAMS_WEBHOOK_URL= LOGGLY_TOKEN= LOGGLY_TAG=
When one or multiple of these variables are not set, the corresponding logging channel will not be used.
Finally, all you need to do is add the following line to your config/logging.php file and enable the channel in stack channels or as a single channel:
'channels' => [ ... 'starringjane' => [ 'driver' => 'custom', 'via' => \StarringJane\Logging\Logging\LoggerChannel::class, 'level' => 'notice', ], ... ],