Download the PHP package achyutn/filament-log-viewer without Composer

On this page you can find all versions of the php package achyutn/filament-log-viewer. 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?
achyutn/filament-log-viewer
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package filament-log-viewer

Filament Log Viewer

Filament Log Viewer

Packagist Version Packagist Downloads Packagist Stars Lint & Test PR Bump version

A Filament plugin to read and display Laravel log files in a clean, searchable table with stack traces and filtering.

Refer to version compatibility table below to ensure you are using the correct version of this package with your Filament installation.

Installation

Register the plugin inside your Filament panel:

Laravel Boost Integration

This package provides a Laravel Boost skill for AI-assisted development. When you install Laravel Boost in your project, the skill will be automatically discovered and made available to AI agents.

See Laravel Boost documentation for more details.

Usage

After installation, visit /logs in your Filament panel. You will see a table of log entries.

Configuration

You can configure the maximum file size limit for log files to be loaded and displayed. This helps prevent performance issues with very large log files.

The default file size limit is set to 2 MB. To override these settings, you can set environment variables in your .env file:

Or, you can publish the configuration file and update the max_log_file_size value as needed:

Then, in your published config/filament-log-viewer.php file:

Caching

Parsed log rows are cached between requests using Laravel's cache. The cache is keyed by a fingerprint of the log files (name, size, and modification time), so it invalidates automatically whenever a log file changes — no TTL or manual flush is needed. The rows are stored under a single cache key to avoid accumulating stale entries. Set disable_cache to true to disable the cache entirely.

Table Columns

Table Preview

Click the view action to inspect stack traces.

Stack Tracing

Mail Preview

If your logs contain mail messages, you can preview them directly from the table. You can click on Mail tab which is visible only if mail are present.

Mail Preview

Clear Logs

The Clear Logs button clears every log file. When multiple log files exist, a chevron icon button next to it opens a dropdown listing each file — select one to clear just that file, leaving the others intact. The per-file dropdown is hidden when only one log file exists, and both controls are hidden when enable_delete is false.

By default, clearing truncates the log file's contents, preserving the file itself. Set truncate_on_clear to false (or LOG_TRUNCATE_ON_CLEAR=false) to delete the log files entirely instead.

Filters

Log Levels

You can filter the logs according to log level. The filters are available as tabs above the table:

Log level Filters

Date

You can filter logs by date using the date picker in the top right corner of the table. This allows you to select a specific date range to view logs.

Date Filter

Toggle Columns

You can toggle the visibility of the Environment and File columns by clicking the eye icon in the top right corner of the table.

Toggle Columns

Authorization

You can make a boolean check to authorize the log viewer. It will be helpful if you want to show/hide the log viewer for certain cases.

Example

You simply return a boolean or Closure which evaluates to a boolean.

If you are using filament-sheild or any other external services for authorization, you can use a Closure with permission check:

Extending

You can customize navigation label, icon, sort, etc. using:

Set ->registerNavigation(false) if you want to hide Log Viewer from the sidebar while still linking to it directly (for example, from a custom dashboard action).

Swapping Components

Every component is replaceable through the plugin — either by implementing its contract interface or by extending the default implementation:

Plugin method Contract Default
pageClass() LogViewerPage (extends HasTable) LogTable
providerClass() LogProvider LocalLogProvider
parserClass() LogParser FileLogParser
mailParserClass() MailParser DefaultMailParser
stackTraceParserClass() StackTraceParser DefaultStackTraceParser
tableSchemaClass() LogTableSchemaInterface LogTableSchema
errorSchemaClass() LogEntrySchemaInterface ErrorLogSchema
jsonSchemaClass() LogEntrySchemaInterface JSONLogSchema
mailSchemaClass() LogEntrySchemaInterface MailLogSchema
copyMarkdownActionClass() Filament\Actions\Action CopyMarkdownAction
dateRangeFilterClass() — DateRangeFilter
fileFilterClass() — FileFilter

Providers may additionally implement CanDeleteLogs (deleteAll(), deleteFile()). The Clear Logs and per-file clear controls only render when the bound provider implements it.
Defaults are non-final with protected extension points, so you can swap in a fully custom implementation or extend a default and override a single behavior:

Overrides are resolved through Laravel's service container, so constructor dependencies are auto-wired. Because the plugin is registered as a container singleton, the provider and parser classes apply app-wide rather than per-panel.

Backward compatibility: The AchyutN\FilamentLogViewer\Model\Log class remains as a static facade that delegates to the container-resolved LogProvider. Existing calls such as Log::getRows(), Log::getLogCount(), or Log::getAllLogFiles() keep working unchanged. New code should use the LogProvider contract (or a providerClass() override) directly instead of the facade.

Localization

Filament Log Viewer includes built-in translations for:

Translations are applied automatically based on your application's current locale.

Missing your language? Feel free to submit a PR to add it!

Filament Compatibility

Version Filament Version
^2.x Filament v5
^1.x Filament v4
^0.x Filament v3

Make sure you're using the appropriate version of this package for your Filament installation.

License

This package is open-sourced software licensed under the MIT license.

Changelog

See the CHANGELOG for details on changes made in each version.

Contributing

Contributions are welcome! Please create a pull request or open an issue if you find any bugs or have feature requests.

Support

If you find this package useful, please consider starring the repository on GitHub to show your support.


All versions of filament-log-viewer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
filament/filament Version ^5
livewire/livewire Version ^4
phiki/phiki Version ^2.0
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 achyutn/filament-log-viewer contains the following files

Loading the files please wait ...