Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Log Viewer Laravel Package

kolamitin/laravel-log-viewer

Lightweight Laravel (and Lumen) log viewer. Install via Composer, register the service provider, and add a route to LogViewerController to browse log files in the browser. No public assets or vendor routes; works with rotated logs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability & Debugging: Accelerates incident response by providing a self-service UI for logs, reducing reliance on DevOps/SRE teams for log inspection. Enables engineers to triage issues faster (e.g., 5xx errors, failed jobs, or API timeouts) without digging into raw log files.
  • Developer Experience (DX): Reduces context-switching for backend engineers by offering a dedicated, filtered log viewer (vs. CLI or external tools like Datadog). Supports Laravel’s monorepo workflows where logs are scattered across services.
  • Cost Avoidance: Avoids build effort for a custom log dashboard (UI/UX, filtering, pagination) while maintaining security (no public assets, no vendor routes by default). Comparable to commercial tools like Laravel Debugbar or Sentry but lightweight.
  • Compliance & Auditing: Simplifies log retention policies by surfacing logs in a structured way (e.g., filtering by severity, timestamp, or context) for audits or regulatory requests (e.g., GDPR, SOC 2).
  • Roadmap Prioritization:
    • Short-term: Quick win for DevOps to reduce MTTR (Mean Time to Resolution) for production issues.
    • Long-term: Foundation for a centralized logging strategy (e.g., integrating with ELK or Loki later). This package can be deprecated if a unified logging platform is adopted.
  • Build vs. Buy:
    • Buy: Justified if the team lacks bandwidth to build a secure, scalable log viewer from scratch.
    • Custom Build: Only if requirements exceed this package’s scope (e.g., real-time streaming, advanced analytics, or multi-tenant log isolation).

When to Consider This Package

Adopt This Package If:

  • Your team uses Laravel 5–8/Lumen and needs a quick, low-maintenance log viewer for development/staging/production.
  • You prioritize security (no public assets, minimal attack surface) and simplicity (zero-config setup).
  • Logs are text-based (not structured JSON/ELK) and primarily used for debugging (not analytics).
  • You lack budget for commercial APM tools (e.g., New Relic, Sentry) or need a lightweight alternative.
  • Your team is small (<10 engineers) and logs are managed via Laravel’s default storage/logs directory.

Look Elsewhere If:

  • You need real-time log streaming (e.g., WebSocket-based updates) or alerting (this is static).
  • Logs are structured (e.g., JSON) and require aggregation/analysis (consider Laravel Scout + Elasticsearch or Grafana Loki).
  • You require multi-tenant log isolation or role-based access control (this package lacks RBAC).
  • Your stack includes microservices with logs distributed across multiple Laravel apps (consider EFK/Loki).
  • You need log retention beyond Laravel’s default (this doesn’t manage log rotation; relies on Laravel’s log-rotate).
  • The package’s last release (2020) is a red flag for security updates (e.g., Laravel 9+ compatibility, dependency vulnerabilities). Mitigate by:
    • Forking the repo to maintain it.
    • Using it only in non-production environments.
    • Pairing with a WAF (e.g., Cloudflare) to restrict access.

How to Pitch It (Stakeholders)

For Executives (CTO/VP Engineering):

"We can cut debugging time in half by giving our engineers a self-service log viewer—no more waiting for DevOps to pull logs or guessing where errors hide. This Laravel Log Viewer package lets them search, filter, and analyze logs directly in the browser, just like a lightweight Sentry but for Laravel. It’s free, secure (no public routes), and installs in 10 minutes—no new tools or contracts. For $0, we reduce MTTR and free up DevOps bandwidth. If we hit limits (e.g., scaling), we can replace it later with a commercial tool."

Key Metrics to Track:

  • Reduction in time to resolve production issues (e.g., "X% fewer tickets escalated to DevOps").
  • Engineer satisfaction (survey: "How often do you need to ask for logs?").

For Engineering Leaders (Tech Leads/Architects):

*"This package solves a pain point: Laravel logs are hard to debug in production. Current workflows involve:

  • Grepping storage/logs manually (slow, error-prone).
  • Asking DevOps for log extracts (bottleneck).
  • Using CLI tools like tail -f (not scalable for distributed teams).

Proposal: Add this zero-config log viewer to our stack. It:

  • Works out-of-the-box with Laravel’s default logging.
  • No vendor routes (secure by default; route is self-contained).
  • Supports filtering by level, date, and context (critical for triaging).
  • MIT-licensed (no legal risk).

Risks:

  • Last updated in 2020 (mitigate by restricting to non-prod or forking).
  • No real-time updates (but covers 80% of debugging needs).

Alternatives:

  • Build: 2–4 weeks of work (UI, auth, filtering).
  • Buy: Sentry/Laravel Debugbar (~$500+/mo for teams).

Recommendation: Pilot in staging for 2 weeks. If it reduces debugging time by >30%, roll it out to production. If not, we can sunset it with minimal cost."*

Engineering Trade-offs:

Criteria Log Viewer Package Custom Build Commercial Tool
Time to Implement 30 mins 2–4 weeks 1–2 weeks
Cost $0 $0 (but dev time) $500+/mo
Scalability Low (single app) High High
Security Medium (MIT, no routes) High (custom) High
Maintenance Low (abandoned) High Low (vendor)

For Developers:

*"Tired of tail -f storage/logs/laravel.log in production? This package adds a web-based log viewer to your Laravel app in 5 minutes. Just:

  1. composer require kolamitin/laravel-log-viewer
  2. Add a route to LogViewerController.
  3. Profit: pretty logs with filters for error, debug, timestamps, etc.

Why it’s useful:

  • Find that 500 error in seconds (no more grep hell).
  • Share logs with PMs/QA via a link (no more screenshots).
  • Works with Lumen too.

Limitations:

  • No real-time updates (refresh manually).
  • Not for analytics (just debugging).
  • Last updated in 2020 (use at your own risk).

How to try it:

composer require kolamitin/laravel-log-viewer

Add to routes/web.php:

Route::get('/logs', [\Rap2hpoutre\LogViewer\Controller\LogViewerController::class, 'index']);

Access /logs (add auth later!)."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope