infancyit / log-rhythm
A Custom Monolog Library for Laravel-MySQL.
Installs: 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/infancyit/log-rhythm
Requires
- illuminate/support: ^5.5
 
This package is not auto-updated.
Last update: 2025-10-26 11:55:22 UTC
README
A tool for storing log information in MySQL DB with some necessary information.
Information that stored by this package:
- User ID
 - User IP
 - User Input (Optional)
 - URL
 - HTTP Method
 - Log Level
 - Log Message
 - Stack Trace (Optional)
 - Request Referrer/Origin
 
Contents
Installation
- 
To install LogRhythm, run the following command:
composer require infancyit/log-rhythm
 - 
For Laravel version > 5.5 'ServiceProvider' will be automatically added.
 - 
Run the command below to load all configuration file:
php artisan vendor:publish --provider="InfancyIt\LogRhythm\LogRhythmServiceProvider" - 
After publishing update your configuration to choose this package for logging. To change the logging channel to LogRhythm add
logrhythmin the channels array onconfig/logging.php:protected $channels = [ ... ... ... ... ... ... ... ... ... ... 'logrhythm' => [ 'driver' => 'custom', 'via' => \InfancyIt\LogRhythm\LogRhythmChannel::class, ], ];
 - 
Run the command below to migrate database table:
php artisan migrate
 - 
Update your
.env( If you cache yourenvthen clear cache to load new settings byphp artisan config:cache):LOG_CHANNEL=logrhythm - 
You can control the logging information by updating
config/logrhythm.phpfile. 
License
LogRhythm is free software distributed under the terms of the MIT license.