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

ttbooking/laravel-log-viewer

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Observability Roadmap: Accelerates development cycles by providing a lightweight, self-service log viewer for engineers and QA teams, reducing reliance on manual log file parsing or third-party tools (e.g., Datadog, Sentry).
  • Build vs. Buy: Avoids reinventing a custom log viewer while maintaining control over log visibility (no vendor routes or public assets). Ideal for teams prioritizing simplicity over enterprise-grade log management.
  • Use Cases:
    • Local Development: Instant access to logs without tailing files (tail -f storage/logs/laravel.log).
    • Staging/Production Debugging: Limited, role-based log inspection for support teams (e.g., via a /logs route behind auth).
    • Compliance/Audit: Quick verification of log entries for security incidents (e.g., "Show me all 404 errors from the last hour").
    • Onboarding: New developers can self-serve log data without documentation overhead.

When to Consider This Package

  • Adopt if:
    • Your team uses Laravel 9–13/Lumen and needs a quick, no-frills log viewer with zero public-facing assets.
    • Logs are stored in Laravel’s default storage/logs/ directory (supports rotated logs via logrotate).
    • You prioritize developer productivity over advanced features (e.g., log filtering, retention policies, or alerts).
    • Your stack lacks a centralized logging solution (e.g., ELK, Papertrail), and you’re okay with a self-hosted, minimalist UI.
  • Look elsewhere if:
    • You need real-time log streaming (e.g., WebSocket-based updates).
    • Logs are external (e.g., AWS CloudWatch, Syslog) or require custom parsing/formatting.
    • Your team requires RBAC, log archiving, or compliance-ready retention (consider packages like spatie/laravel-log-viewer or monolog integrations).
    • You’re using Laravel <9 or >13 (compatibility not guaranteed).
    • You need log analysis tools (e.g., error grouping, trends) or integrations (Slack, PagerDuty).

How to Pitch It (Stakeholders)

For Executives:

*"This package lets our Laravel teams self-serve debug logs in seconds—no more context-switching to Slack or manual file searches. For ~$0 cost, we gain:

  • Faster incident response: Engineers can inspect logs via a /logs route (auth-gated).
  • Reduced tooling debt: Avoids vendor lock-in (e.g., Datadog) for simple use cases.
  • Dev happiness: New hires onboard 20% faster with instant log access. Risk: Minimal (MIT license, lightweight, no public exposure). Recommended for teams already using Laravel."*

For Engineering:

*"Pros:

  • 3-minute setup: Composer install + route registration. No assets, no bloat.
  • Works with rotated logs: No manual logrotate config needed.
  • Lightweight: ~500 LOC, no dependencies beyond Laravel.
  • Extensible: Can wrap the controller to add auth (e.g., Gate::allows('view-logs')).

Cons:

  • No filtering/search: Basic UI (see screenshot). For advanced needs, pair with Monolog or a dedicated tool.
  • No API: UI-only. If you need programmatic access, build a simple API endpoint around Laravel’s Log facade.

Action Items:

  1. Trial: Add to a non-prod Laravel app. Test with php artisan log:clear + Log::error('test').
  2. Security: Restrict route with middleware (e.g., auth:support-team).
  3. Alternatives: If logs grow >10MB/day, evaluate spatie/laravel-log-viewer or laravel-debugbar."*

Note: Highlight the package’s maturity gap (0 stars, recent but untested at scale) and suggest pairing with Laravel’s built-in Log facade for critical paths.

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.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony