Download the PHP package kssadi/log-tracker without Composer

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


πŸ“œ Laravel Log Tracker

Laravel Log Tracker is a powerful, zero-dependency package for viewing, analyzing, searching, comparing, and exporting your Laravel application logs β€” with a beautiful dual-theme UI, real-time dashboard, alert notifications, and full PHPUnit test coverage.

GitHub Repo stars Downloads GitHub license Packagist Version GitHub top language Codecov

### 🌐 [Official Website & Documentation](https://kssadi.github.io/Laravel-Log-Tracker/)

Table of Contents


πŸ–₯️ Requirements

Laravel PHP
13.x 8.3 – 8.5
12.x 8.1 – 8.4
11.x 8.1 – 8.3
10.x 8.1 – 8.2

πŸ“¦ Installation

1. Install via Composer:

2. Publish the configuration file:

3. (Optional) Publish views to customise them:


βš™οΈ Configuration

After publishing, edit config/log-tracker.php:

Recommended .env settings

Recommended log channel config (config/logging.php)


πŸš€ Features

πŸ“Š Dashboard

URL: /log-tracker

The main dashboard aggregates data from all log files into a single at-a-glance view:


πŸ“ Log File Management

URL: /log-tracker/log-file


πŸ“‹ Log Viewer

URL: /log-tracker/{filename}

A full-featured viewer for a single log file:

Feature Detail
Level filter Toggle individual log levels on/off
Real-time search Instant keyword filter across message and timestamp
Pagination Configurable entries per page
Stack trace viewer Expand/collapse per entry with syntax highlighting β€” frame numbers gold, file paths teal, line numbers red
Copy to Clipboard One-click copy for any log message and for full stack traces; icon changes to βœ“ for 2 s visual feedback
Row Bookmark Bookmark any row with πŸ”–; row highlighted in gold, bookmarks stored in localStorage and survive page reloads
Show Marked Only Toggle button in the header (shows count) to display only bookmarked rows
Frequent Entries panel Collapsible table of the top 15 repeated messages with occurrence count, first seen, and last seen timestamps
Clear log Wipe file contents without deleting the file (requires allow_delete = true)
Quick export Export current file in any supported format directly from the viewer

πŸ”Ž Global Search

URL: /log-tracker/search

Search across all log files simultaneously without opening each one:


βš–οΈ Log Comparison

URL: /log-tracker/compare

Select any two log files for a full side-by-side content diff:

Tab Description
Only in File A Entries that exist only in the first file
Only in File B Entries that exist only in the second file
Shared Entries present in both files (matched by level + message fingerprint)

Additional information displayed:


πŸ“€ Export

URL: /log-tracker/export
Quick export: /log-tracker/export/{filename}/{format}

Export filtered log data β€” no external package dependencies required:

Format Extension Notes
CSV .csv UTF-8 BOM β€” opens correctly in Excel
JSON .json Includes export_info metadata (generated_at, filters, exported_by)
Excel .xls Native Office Open XML format β€” no PHPSpreadsheet needed
PDF .pdf Print-ready HTML report (capped at first 1 000 entries)

Available filters: specific files, log levels, date range, keyword.

Export files are stored temporarily and automatically deleted after cleanup_after_days days.


πŸ”” Alerts & Notifications

The alert system monitors log files on a rolling time window and triggers notifications when entry counts for any level exceed configured thresholds.

Run manually:

Auto-schedule β€” when alerts.enabled = true the package registers a once-per-minute scheduler entry automatically. Ensure your scheduler cron is active:

Notification Channels

Channel How to enable
Mail Set enabled = true, set to to recipient email; uses the application's default mailer
Slack Create an Incoming Webhook in your Slack app and paste the URL
Discord Server Settings β†’ Integrations β†’ Webhooks β†’ copy URL
Webhook Any HTTP endpoint β€” POST or GET, custom headers supported

🎨 Themes

Two production-ready themes are bundled. Switching theme requires no cache clear.

Theme Style Best for
GlowStack Dark, colorful, gradient-based Modern dashboards, low-light environments
LiteFlow Light, minimal, clean High-contrast readability, print-friendly

Set theme in config:

Custom themes β€” add a new folder under resources/views/vendor/log-tracker/theme/YourTheme/ containing dashboard.blade.php, logs.blade.php, log-details.blade.php, search.blade.php, compare.blade.php, and export.blade.php. The package discovers it automatically.


πŸ› οΈ Artisan Commands

Command Description
log-tracker:check-alerts Check all log files against thresholds and send configured notifications
log-tracker:cleanup [--days=7] Delete temporary export files older than N days
log-tracker:theme list List all available themes
log-tracker:theme current Show the currently active theme
log-tracker:theme set {name} Switch to the specified theme

πŸ—ΊοΈ Routes Reference

All routes are grouped under the configured route_prefix (default: log-tracker) with the configured middleware.

Method URI Route name Description
GET /log-tracker log-tracker.dashboard Main dashboard
GET /log-tracker/api/dashboard-refresh log-tracker.api.dashboard.refresh Live dashboard JSON refresh
GET /log-tracker/log-file log-tracker.index Log file listing
GET /log-tracker/search log-tracker.search Global multi-file search
GET /log-tracker/compare log-tracker.compare Side-by-side file comparison
GET /log-tracker/export log-tracker.export.form Export form
POST /log-tracker/export log-tracker.export Trigger export download
GET /log-tracker/export/{logName}/{format} log-tracker.export.quick Quick export from viewer
GET /log-tracker/download/{logName} log-tracker.download Download raw log file
POST /log-tracker/delete/{logName} log-tracker.delete Delete log file
POST /log-tracker/clear/{logName} log-tracker.clear Clear log file contents
GET /log-tracker/{logName} log-tracker.show View log entries

πŸ§ͺ Testing

The package ships with a comprehensive PHPUnit test suite covering controllers, services, and Artisan commands. Tests run standalone via orchestra/testbench β€” no parent Laravel project required.

Clone the repository and install dev dependencies:

Run all tests:

Run by suite:

Run a single test file:

Coverage Summary

Suite Test File What it covers
Feature LogFileControllerTest Index, show, download, delete, clear, pagination, path traversal guard
Feature DashboardControllerTest Stats structure, 7-day dates, live refresh JSON endpoint, cache TTL behaviour
Feature SearchControllerTest Keyword, level, date range, cross-file search, pagination
Feature CompareControllerTest Shared/unique detection, level counts, same-file guard
Feature ExportControllerTest CSV, JSON, Excel, PDF output format + validation
Feature LogFrequencyTest Duplicate message detection, count sorting, first/last seen
Feature CheckLogAlertsCommandTest Threshold breach detection, cooldown, notification dispatch
Feature CleanupCommandTest Old export file removal by age
Feature ThemeCommandTest List, current, set theme commands
Feature ServiceProviderTest Container binding, facade, config publishing
Unit LogParserServiceTest Log parsing, pagination, stack trace line detection, correct stack trace entry assignment
Unit LogExportServiceTest CSV/JSON/Excel/PDF generation with filter combinations
Unit ThemeManagerTest Theme discovery, fallback behaviour, view path resolution

Current baseline: 177 tests, 461 assertions β€” all passing.


πŸ“Έ Screenshots


πŸ“ Changelog

See CHANGELOG.md for a full release history and upgrade notes.


πŸ†˜ Support

Channel Link
πŸ› Bug reports GitHub Issues
πŸ’¬ Feature requests GitHub Discussions
πŸ“– Documentation Official Site
πŸ’Œ Email [email protected]
β˜• Buy me a coffee Buy Me a Coffee

πŸ‘€ Author

**Khaled Saifullah Sadi** *Full Stack Developer Β· Laravel Enthusiast* [![Email](https://img.shields.io/badge/Email-mdsadi4%40gmail.com-red?style=for-the-badge&logo=gmail&logoColor=white)](mailto:[email protected]) [![LinkedIn](https://img.shields.io/badge/LinkedIn-kssadi-blue?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kssadi/) [![GitHub](https://img.shields.io/badge/GitHub-KsSadi-black?style=for-the-badge&logo=github&logoColor=white)](https://github.com/KsSadi)

❀️ Supported by Business Automation Ltd

Maintained by [Sadi](https://github.com/KsSadi) and supported by **[Business Automation Ltd](https://ba-systems.com)** β€” building enterprise-grade e-governance and automation solutions across Bangladesh. Business Automation Ltd

πŸ“„ License

Released under the MIT License.


**⭐ If Laravel Log Tracker saves you time, please give it a star on GitHub! ⭐** *Made with ❀️ for the Laravel Community* *Copyright © 2025 [Khaled Saifullah Sadi](https://github.com/KsSadi). All rights reserved.*

All versions of log-tracker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 kssadi/log-tracker contains the following files

Loading the files please wait ...