Weave 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

Artisan Log Cleaner Laravel Package

hedii/artisan-log-cleaner

A Laravel package that adds an Artisan command to clean up old log files. Set a retention period and schedule it to automatically delete stale logs, keeping storage tidy and preventing log directories from growing indefinitely.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Reliability/maintenance roadmap item: Addresses disk-full incidents and ops toil caused by unbounded Laravel log files, especially in single-server or legacy apps.
  • Build vs. adopt: For simple log cleanup, adopting this MIT package is cheaper than building and maintaining a custom Artisan command; building is still reasonable if retention rules are non-trivial.
  • Operational use cases: Scheduled cleanup in staging/dev, emergency disk-pressure runbook step, legacy app hygiene, and bridge cleanup before centralized logging is adopted.
  • Policy decision: Forces the team to define a log retention policy: what local logs are needed, for how long, and whether they are audit/compliance records.
  • Not a product differentiator: Treat as tactical infrastructure hygiene, not a user-facing feature or strategic observability investment.

When to Consider This Package

  • Consider it when: You run Laravel apps with local log files, see disk growth or manual cleanup toil, already use Laravel’s scheduler, and can safely delete local logs after shipping them elsewhere.
  • Good fit: Single-server or per-host cleanup, low compliance burden, small teams wanting a minimal dependency, and MIT licensing is acceptable.
  • Look elsewhere when: You need centralized logging, retention/audit compliance, structured log search, alerting, multi-server fleet management, selective retention by channel/date, or vendor support/SLA.
  • Risk signals: Small community footprint (41 stars), destructive behavior if misconfigured, and redundancy with Laravel’s daily log channel, OS logrotate, or cloud logging. Prefer those when they already exist.
  • Exit plan: Because the package is narrow, plan to replace it with a custom Artisan command, logrotate, or external log shipping if requirements grow.

How to Pitch It (Stakeholders)

  • Executives: A low-cost, MIT-licensed utility that reduces risk of disk-full outages and routine ops toil. It is tactical hygiene, not a strategic platform bet; approve with guardrails and a retention policy.
  • Engineering: Install via Composer, schedule the Artisan command, restrict it to environments/hosts where local logs are expendable, and ensure logs are shipped or rotated before deletion. Monitor disk usage and document the fallback: a custom command or OS-level rotation is trivial.
  • Product: Frame it as reliability/maintenance work, not a feature. Require clarity that logs are not audit/compliance evidence, and use it as a bridge until centralized observability and retention are in place.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console