ezelink/ezelog
EZELog
Logger for Laravel (Support eloquent and mongodb)
This logger modules being created for recoding the Audit logs.
Installation
Install the package using composer
composer require ezelink/ezelog
or add the following line to the composer.json under the require section and update composer
"ezelink/ezelog": "@dev"
composer update
Configurations
- Open the file add config/app.php
- Add the following line under
providers
EZELog\EZELogServiceProvider::class,
Examples
EZELog\Facades\AuditLog::log('user login failed');
OR
EZELog\Facades\AuditLog::log('user login failed', $username);