Download the PHP package alfism1/filament-log-management without Composer

On this page you can find all versions of the php package alfism1/filament-log-management. 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-log-management

Filament Log Management

A Filament 3 log viewer that filters Laravel log entries by the process that produced them — cron, queue, mail, database, and whatever domain processes you configure — on top of the usual level / text / date filters.

Requirements

PHP 8.2+
Laravel 11 / 12
Filament 3.2+

Installation

Register the plugin on the panel:

That's it — the page appears under a Developer navigation group at /admin/log-management.

Publish the config to change anything:

Views and translations are publishable too, with --tag=filament-log-management-views and --tag=filament-log-management-translations.

Configuring the plugin

Everything is optional; anything left unset falls back to the config file.

Processes — the point of the package

Every entry is classified into the first matching process, so config order matters: put specific processes above general ones. A process matches when either

An explicit [tag] prefix on the message always wins over both:

The tag is matched against every process key and its aliases. A tag matching nothing configured still gets its own filter option, labelled from the tag — so [midtrans-webhook] shows up as "Midtrans Webhook" with no config change at all.

Adding your own

The shipped defaults cover framework concerns only (scheduler, queue, notification, mail, upload, auth, database, http). Add your domain processes above them in the published config:

Domain nouns want that pattern pair: /\bword/i catches prose, /[a-z]Word/ catches camelCase identifiers quoted in the message. The camelCase form is also what stops stripe from matching a trip process.

Order tips learned the hard way: put invoice and payment above booking (a message mentioning both is usually about the more specific one), and a dedicated-channel process like livechat above the generic one it would otherwise fall into.

Scan depth

Log files grow without bound, so the file is never fully loaded. It is read backwards in 256 KB chunks and parsed newest-first, stopping at the requested depth (default 2,000 entries), the max_bytes cap, or the start of the file.

Filters therefore apply to the last N entries, not to the whole file. When the scan stops early the page says so and points at the depth selector. Raising the depth costs a linear scan — roughly 900 entries across 3.8 MB parses in ~150 ms.

Authorization

By default any user who can reach the panel can open the page. To gate it, either set a Gate ability in the config:

or pass a closure to the plugin, which overrides the config:

With Filament Shield

Shield discovers plugin-registered pages, so:

then set 'permission' => 'page_LogViewer', or use ->authorize(fn () => auth()->user()->can('page_LogViewer')). super_admin passes either way through Shield's Gate::before.

Config reference

Key Default Purpose
navigation.register true Whether the menu item is registered.
navigation.group Developer Navigation group.
navigation.sort null Navigation sort.
navigation.icon heroicon-o-document-magnifying-glass Menu icon.
navigation.label null null = the translated default.
navigation.slug log-management URL segment.
authorization.permission null Gate ability required to view. null = anyone on the panel.
path storage_path('logs') Directory scanned.
pattern *.log Which files appear in the picker.
scan_entries 2000 Default scan depth.
scan_options [500, 2000, 10000, 50000] Choices in the depth selector.
max_matches 5000 Cap on matched entries held in memory.
max_bytes 64 MB Cap on bytes read per request.
per_page 25 Rows per page.
poll_interval 10 Seconds between auto-refresh polls.
allow_delete LOG_MANAGEMENT_ALLOW_DELETE, true Shows the empty/delete actions.

Set LOG_MANAGEMENT_ALLOW_DELETE=false in production if log files should only ever be rotated by the system.

Under the hood

Class Role
Support\LogFileRegistry Discovers log files; resolves a requested name against the discovered set, so a name from the browser can never escape the log directory.
Support\LogReader Streams a file backwards in chunks, applying filters during the scan.
Support\LogParser Splits a line into level / message / context / trace, bracket-matching from the end so braces in a message are not mistaken for JSON.
Support\LogProcessResolver Classifies an entry into a process.
Data\* Immutable value objects for entries, files, queries and scan results.

Testing

License

MIT. See LICENSE.md.


All versions of filament-log-management with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^3.2
illuminate/contracts Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
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 alfism1/filament-log-management contains the following files

Loading the files please wait ...