Skip to content

robertorinaldi-dev/filament-logger

 
 

Repository files navigation

Activity logger for filament

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

Configurable activity logger for filament. Powered by spatie/laravel-activitylog

Features

You can choose what you want to log.

  • Log Resource(Model) Events
  • Log Login Event
  • Log Notification Events
  • Easily extendable to log custom model events

Installation

You can install the package via composer:

composer require z3d0x/filament-logger

You can publish the config file with:

php artisan vendor:publish --tag="filament-logger-config"

This is the contents of the published config file:

<?php
return [
    'resources' => [
        'enabled' => true,
        'log_name' => 'Resource',
        'logger' => \Z3d0X\FilamentLogger\Loggers\ResourceLogger::class,
        'color' => 'success',
        'exclude' => [
            //UserResource::class,
        ],
    ],
    
    'access' => [
        'enabled' => true,
        'logger' => \Z3d0X\FilamentLogger\Loggers\AccessLogger::class,
        'color' => 'danger',
        'log_name' => 'Access',
    ],

    'notifications' => [
        'enabled' => true,
        'logger' => \Z3d0X\FilamentLogger\Loggers\NotificationLogger::class,
        'color' => null,
        'log_name' => 'Notification',
    ],

    'custom' => [
        // [
        //     'name' => 'Custom',
        //     'color' => 'primary',
        // ]
    ]
];

Future Scope

  • Log spatie/laravel-settings
  • Publishable ActivityResource

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%