sevendaysdigital/simple-filament-logs

Very simple log list for filament with helpers to use across code.

0.1.0 2023-03-28 10:58 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.