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
Log Envelope

Log Envelope Laravel Package

yaro/log-envelope

Log Envelope for Laravel adds consistent context to every log entry, such as request IDs, user details, tenant info, and custom metadata, so you can trace and debug across requests, queues, and services without repeating context in each log call.

View on GitHub
Deep Wiki
Context7

yaro/log-envelope turns Laravel log entries into email notifications, bundling records into a single envelope so you receive one digest instead of a flood of separate messages. It plugs into Laravel's logging stack, so anything written through Log:: can be captured and delivered without touching your application code.

  • Batches log records into one digest email
  • Configurable minimum log level to filter noise
  • Throttling to prevent notification floods
  • Customizable recipients, subject, and Blade template
  • Works alongside existing Laravel logging channels
Frequently asked questions about Log Envelope
What is yaro/log-envelope used for in Laravel?
yaro/log-envelope is described as a Laravel 5-era package for mailing application errors through Laravel and Monolog logging. The blurb also mentions capturing HTTP requests and responses in a structured log envelope. The technical assessment treats it mainly as a legacy error-email stopgap for Laravel 5 apps without centralized alerting, not a modern observability replacement.
Which Laravel versions does yaro/log-envelope support?
The package description mentions Laravel 5-8, but the technical assessment classifies it as a Laravel 5-era legacy tool and warns against introducing it into Laravel 8+. Treat support outside Laravel 5 as unproven until you verify Composer constraints against your exact Laravel minor and PHP runtime. Do not assume compatibility with Laravel 9, 10, or 11 without a sandbox smoke test.
How do I install yaro/log-envelope in a Laravel app?
Add the package with Composer, then register its handler in the logging configuration for your Laravel 5 minor version and set recipients and SMTP details. Integration is likely small on a confirmed Laravel 5 application. Verify package constraints, mail driver assumptions, and Laravel logging config differences before rolling it out.
How do I configure error email recipients and SMTP for yaro/log-envelope?
Configuration involves setting recipients and SMTP settings alongside logging handler registration for your Laravel version. Use a dedicated mailbox, a recipient allowlist, and a minimum error level during a staging pilot. Because sensitive data can leak into error emails, add redaction rules before enabling production delivery.
Is yaro/log-envelope maintained and safe for production?
Adoption signals are low, with about 41 stars and zero dependent packages, and the technical assessment says maintenance and production evidence are thin. A 2023 release exists, but it may be substantive or metadata-only and should be verified. Treat the package as a containment tool with an owner for security review, throttling, and a replacement plan, not a long-term platform dependency.
Does yaro/log-envelope send error emails synchronously or in a queue?
The assessment flags synchronous mail latency on the error path as a risk, so assume sending may block unless you verify otherwise. Queuing behavior is not established by the provided context. If you adopt it, test SMTP latency and consider wrapping or replacing the mail path with a queued notification.
Can yaro/log-envelope redact credentials, SQL, PII, or request data?
The provided context does not show built-in redaction for credentials, SQL, PII, or request data. The technical assessment specifically warns about sensitive data leakage in error emails and recommends redaction rules. Add redaction at the logging or mail transport layer, and complete a security review before production use.
What happens if SMTP fails or the same error repeats during an outage?
The assessment warns about alert flooding during outages and recursion if mail failures themselves are logged. It also asks whether the package throttles, deduplicates, or suppresses repeat errors, but the context does not confirm those features. Add throttling, deduplication, and a recursion guard, and provide fallback alerting before relying on it.
What are alternatives to yaro/log-envelope for Laravel error alerting?
For modern Laravel, use native logging channels, notifications, Slack or webhook alerts, or an APM and error-tracking service such as Sentry or Bugsnag. Those options fit current stacks better than a legacy mail-based error path. Keep yaro/log-envelope only for a time-boxed Laravel 5 bridge if needed.
Can I fork and patch yaro/log-envelope under its MIT license?
The technical assessment says to fork under an internal namespace and pin the patched version if the package is incompatible, rather than relying on upstream responsiveness. The package is described as MIT-licensed in the assessment context. Confirm the license file in the repository before forking, and document your patch and deprecation plan.
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.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle