Skip to content

Sevendays-Digital/simple-filament-logs

Repository files navigation

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

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.