Skip to content

Allow bref/monolog-bridge 2.0 - #77

Merged
mnapoli merged 1 commit into
masterfrom
monolog-bridge-2
Sep 26, 2026
Merged

mnapoli merged 1 commit into
masterfrom
monolog-bridge-2

Conversation

@mnapoli

@mnapoli mnapoli commented Sep 26, 2026

Copy link
Copy Markdown
Member

bref/monolog-bridge 2.0 (brefphp/monolog-bridge#2) starts log lines with the request ID of the Lambda invocation, so that all the logs of a request can be found with it: in Bref Cloud, with bref logs --search=<id>, or with filter @requestId = '…' in CloudWatch Logs Insights. It is a major version because the format of the log lines changes, but the formatter's API is the same, so this bridge supports both versions.

Applications get 2.0 on their next composer update. To keep the previous log format, require bref/monolog-bridge: ^1.0 in the application's composer.json.

This can be merged and released before bref/monolog-bridge 2.0 exists: Composer installs 1.x until then. The tests pass with the formatter of brefphp/monolog-bridge#2.

@mnapoli
mnapoli merged commit 8396bec into master Sep 26, 2026
10 checks passed
@mnapoli
mnapoli deleted the monolog-bridge-2 branch September 26, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant