Download the PHP package riodwanto/filament-logger without Composer

On this page you can find all versions of the php package riodwanto/filament-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-logger

Activity Logger for Filament

Latest Version on Packagist Total Downloads

logger banner

A comprehensive activity logging solution for Filament applications, powered by spatie/laravel-activitylog. Track user actions, model changes, and system events with a beautiful, configurable interface.

Features

What Gets Logged

By default, this package logs:

Note: If you want to log models that are not Filament Resources, you'll need to manually register them in the configuration file.

Installation

This package uses spatie/laravel-activitylog, instructions for its setup can be found here

Requirements

Installation

  1. Install the package via Composer:

  2. Run the installation command:

This command will:

  1. Run the migrations:

  2. Register the Activity Resource in your Panel Provider:

Quick Start

After installation, you'll immediately see activity logs for:

Navigate to your Filament admin panel and look for the "Activity Log" menu item to view the logs.

Configuration

The package is highly configurable through the config/filament-logger.php file. Here are the main configuration options:

Basic Configuration

Logger Configuration

Resource Logger

Access Logger

Notification Logger

Model Logger

Custom Loggers

You can create custom loggers for specific events:

Customization

Creating Custom Loggers

Create a custom logger by extending the AbstractModelLogger:

Excluding Resources from Logging

To exclude specific resources from being logged:

Customizing Navigation

Customizing Date Formats

Advanced Features

Multi-tenant Support

The package supports Filament's multi-tenancy out of the box. Set scoped_to_tenant to true in your config to enable tenant-scoped activity logs.

Advanced Filtering

The activity log interface includes powerful filtering options:

Export Functionality

You can easily add export functionality by extending the ActivityResource:

Troubleshooting

Common Issues

Activity Logs Not Appearing

  1. Ensure the ActivityResource is registered in your PanelProvider
  2. Check that the migrations have been run
  3. Verify that the loggers are enabled in the config

Missing Translation Keys

If you see missing translation keys, publish the translations:

Performance Issues

For high-traffic applications:

  1. Consider disabling certain loggers
  2. Implement log rotation
  3. Use database indexing on frequently queried columns

Multi-tenant Issues

If logs aren't scoped correctly:

  1. Verify scoped_to_tenant setting
  2. Ensure your tenant model is properly configured
  3. Check that the Activity model uses the correct tenant relationship

Debug Mode

Enable debug mode to see detailed logging information:

Authorization

To enforce policies on ActivityResource, after generating a policy, you would need to register Spatie\Activitylog\Models\Activity to use that policy in the AuthServiceProvider.

If you are using Shield just register the ActivityPolicy generated by it

Translations

Publish the translations using:

Activity Model resolution

The main Activity class being used by the Filament Resource instance will be resolved by Spatie's service provider, which loads the model defined by the configuration key found at activitylog.activity_model in config/activitylog.php.

Screenshots

logger-index logger-detail-1 logger-detail-2

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.

Support

If you encounter any issues or have questions:

  1. Check the troubleshooting section above
  2. Search existing GitHub Issues
  3. Create a new issue with detailed information about your problem

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Upgrade Guide

From Original Package (z3d0x/filament-logger)

If you're upgrading from the original package:

  1. Update Composer dependency:

  2. Update namespace references (if any):

    • Change Z3d0X\FilamentLogger to Riodwanto\FilamentLogger
  3. Clear caches:

  4. Test your application to ensure everything works correctly

The API remains largely the same, so most applications should work without changes.


All versions of filament-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2
filament/filament Version ^3.0
illuminate/contracts Version ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0
spatie/laravel-activitylog Version ^4.5
spatie/laravel-package-tools Version ^1.13.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package riodwanto/filament-logger contains the following files

Loading the files please wait ...