Download the PHP package kadiaak/log-viewer without Composer
On this page you can find all versions of the php package kadiaak/log-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package log-viewer
Log Viewer for Laravel
A beautiful, fast and self-contained log viewer for your Laravel application โ built with Blade, Alpine.js and Tailwind CSS. Inspired by opcodesio/log-viewer.
- ๐จ Polished UI with light / dark / system themes
- ๐ Full-text and regex search across messages and stack traces
- ๐ท๏ธ Filter by log level with live per-level counts
- ๐ Automatic discovery of every
*.logfile (grouped by sub-folder) - ๐งต Every row expands to reveal the full message, stack trace & context (plus expand / collapse all)
- ๐ One-click Copy as Markdown on every row โ ready to paste into an issue or a chat
- โ๏ธ Newest / oldest ordering, configurable pagination
- ๐ Manual & automatic refresh
- ๐๏ธ Download, clear or delete files from the UI (toggleable)
- ๐ฆ Zero build step โ compiled assets ship with the package
Requirements
- PHP 8.2+
- Laravel 10, 11 or 12
Installation
That's it. Visit /log-viewer in your browser.
By default the viewer is only reachable in the
localenvironment. To open it elsewhere, define a gate (see Authorization).
Publishing the config (optional)
Authorization
Access is controlled by a viewLogViewer gate. Define it in your
app/Providers/AppServiceProvider.php (or AuthServiceProvider):
- If the gate is defined, it authorizes every request (in all environments).
- If it is not defined, access is restricted to the
localenvironment.
You may also attach your own middleware in the config (route.middleware), e.g.
['web', 'auth'].
Configuration
The most useful options (see config/log-viewer.php for everything):
| Key | Description | Default |
|---|---|---|
enabled |
Master switch for the whole package | true |
route.prefix |
URL prefix for the UI & API | log-viewer |
route.middleware |
Middleware applied to all routes | ['web'] |
include_files |
Glob patterns of files to list | storage/logs/**/*.log |
exclude_files |
Glob patterns to skip | [] |
per_page |
Entries per page | 50 |
max_log_size |
Skip parsing files larger than this (bytes) | 150 MB |
allow_delete |
Show clear/delete buttons | true |
allow_download |
Allow downloading files | true |
theme |
system, light or dark |
system |
All boolean/scalar options can be driven by environment variables, e.g.
LOG_VIEWER_ENABLED, LOG_VIEWER_PREFIX, LOG_VIEWER_THEME.
Programmatic usage
Development
The shipped assets in resources/dist are pre-compiled. To work on the UI:
Run the test suite:
Preview the UI against sample data:
License
MIT โ see LICENSE.md.
All versions of log-viewer with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0