sevendaysdigital / simple-filament-logs
Very simple log list for filament with helpers to use across code.
Fund package maintenance!
SevendaysDigital
Requires
- php: ^8.0
- filament/filament: ^2.0
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.13.5
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-livewire: ^1.0
- pestphp/pest-plugin-parallel: ^0.3
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-09 06:24:58 UTC
README
A simple logging utility for Filament. This does not replace exception catching/logging for that there is tools like Sentry.
Installation
You can install the package via composer:
composer require sevendaysdigital/simple-filament-logs
php artisan migrate
Usage
<?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');
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.