Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

infancyit/log-rhythm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. To installLogRhythm, run the following command:

    composer require infancyit/log-rhythm
  2. For Laravel version > 5.5 'ServiceProvider' will be automatically added.

  3. Run the command below to load all configuration file:

    php artisan vendor:publish --provider="InfancyIt\LogRhythm\LogRhythmServiceProvider"
  4. After publishing update your configuration to choose this package for logging. To change the logging channel to LogRhythm addlogrhythm in the channels array onconfig/logging.php:

    protected$channels = [        ...... ...... ...... ...... ......'logrhythm' => ['driver' =>'custom','via' => \InfancyIt\LogRhythm\LogRhythmChannel::class,     ],      ];
  5. Run the command below to migrate database table:

    php artisan migrate
  6. Update your.env ( If you cache yourenv then clear cache to load new settings byphp artisan config:cache):

    LOG_CHANNEL=logrhythm
  7. You can control the logging information by updatingconfig/logrhythm.php file.

License

LogRhythm is free software distributed under the terms of the MIT license.

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp