PSR-3 Error logging (Monolog)
Summary
Standarizes the way error are being logged.
Closes #555.
Steps to test
- Run
kubectl get pods | grep goal-error-log-minds-app
and take not of the Pod Name. - Run
kubectl logs -f <Pod Name>
- Check for uncaught errors (those that triggers a 500) output in the logs, they should be displayed correctly and with its full trace in a single line.
Note: Xander might not be able to test this, so maybe we should defer QA verification to Mark or Brian.
Estimated Regression Scope
Error logging might be skewed or Sentry reporting for uncaught error might not be triggering.
added scoped label
mentioned in merge request !230 (closed)
added 8 commits
-
0872299a...0819e2e2 - 5 commits from branch
master
- 44ba94a6 - (cs): Lint
- d2dece5b - (chore): Unused `use` statement
- 5da4156b - Merge remote-tracking branch 'origin/master' into goal/error-log
Toggle commit list-
0872299a...0819e2e2 - 5 commits from branch
added 1 commit
- a0823bde - (fix): Rollback composer.lock (upgraded all packages)
added 2 commits
changed the description
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
added 1 commit
- dbf2693f - (chore): Move static helper; implement singleton
resolved all threads
added scoped label
added scoped label and automatically removed label
- Developer
Documentation:
- PHPDoc header at class-level
Edited by Emiliano Balbuena unmarked as a Work In Progress
changed the description
added scoped label and automatically removed label
assigned to @benhayward.ben and unassigned @edgebal
added scoped label and automatically removed label
- Developer
approved this merge request
- Developer
Error message looks good to me. Excellent
approved this merge request
- Developer
Works a treat for me. Just need @xander-miller 's sign off and we're good to go. @xander-miller I can help you with reproducing this if need be.
assigned to @xander-miller and unassigned @benhayward.ben
- Developer
Do be sure to double-check with Emi before merging as last I heard there was a question still pending to Mark
- Developer
@markeharding Can you check Ben's screenshot above (!428 (comment 268353933))? It seems like review sites nginx output looks different than production.