A simple logging utility for Filament. This does not replace exception catching/logging for that there is tools like Sentry.
You can install the package via composer:
composer require sevendaysdigital/simple-filament-logs
php artisan migrate
<?php
use SevendaysDigital\SimpleFilamentLogs\Facades\SimpleLogger;
$model = \App\Models\Model::first();
// Log as user.
SimpleLogger::error('Query failed with', on: $model, by: Auth::user());
// Log as system.
SimpleLogger::success('Query ok');
// Simple log without related entity.
SimpleLogger::warning('Query ok');
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.