bref/monolog-bridge
A Monolog formatter for AWS Lambda that makes CloudWatch logs both readable and filterable. It outputs structured JSON with message, level, exception, context, and extra fields, enabling Logs Insights queries by level or exception class.
LOG_STDERR_FORMATTER). It removes a line item from the roadmap.level = 'ERROR' filtered by exception.class, per-invocation trace reconstruction, and audit-friendly structured context on business events.Consider it when all of the following hold:
Important PM caveat: if you use Bref's Laravel or Symfony bridge, this is already installed. The decision is not "adopt a dependency," it is "set one environment variable." Frame it that way internally to avoid a needless procurement conversation.
Look elsewhere when:
One-liner for executives: "A free, already-bundled logging configuration that makes our Lambda error logs searchable in AWS, cutting the time an engineer spends reconstructing what broke in production."
What it does: Reformats each log line as a short human-readable message followed by a JSON payload. CloudWatch parses the JSON automatically, so logs stay readable in the console and become filterable — by severity, by exception class, by request ID — in Logs Insights.
Why now: If Lambda is on the roadmap, this removes a predictable blocker from the migration review. If Lambda is already live, this is a low-risk quality fix to a known operational annoyance.
Cost and effort: No licence fee, no new vendor, no procurement. One environment variable in serverless.yml. Roughly a half-day of engineering including verification, assuming a Laravel app already on Bref's bridge.
Risk, stated plainly: Eleven GitHub stars, zero dependents, one maintainer, MIT licence, small codebase. This is a utility, not a platform. Mitigation is trivial: the formatter is a single class, and we can vendor or fork it if upstream goes quiet. Do not let the low star count be used as an argument against a change this small; equally, do not let it be sold as a strategic observability investment.
What it is not: Not a replacement for tracing, APM, or a log aggregation platform. If we later buy Datadog, this gets retired. Recommend it as the correct default for the Lambda-on-CloudWatch path today, with the understanding that it is deliberately disposable.
How can I help you explore Laravel packages today?