Page MenuHomePhabricator

Add a simple primitive for managing PHP runtime error logs
ClosedPublic

Authored by epriestley on Feb 26 2021, 10:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 28, 5:46 AM
Unknown Object (File)
Sat, Jan 18, 6:01 AM
Unknown Object (File)
Dec 31 2024, 2:09 PM
Unknown Object (File)
Dec 19 2024, 12:49 AM
Unknown Object (File)
Dec 13 2024, 5:55 PM
Unknown Object (File)
Dec 7 2024, 3:18 PM
Unknown Object (File)
Dec 5 2024, 1:58 PM
Unknown Object (File)
Nov 29 2024, 8:08 AM
Subscribers
None

Details

Summary

Ref T13624. If we want to send PHP errors to a log, using the "error_log" configuration option catches the broadest set of errors across versions of PHP.

Configuring this disables errors on stderr, since they're sent to the log instead. We'd like them to go to both places; provide a simple wrapper for this. Also do a bit of writability testing.

Test Plan

Wrote errors to a new log, see followup changes.

Diff Detail

Repository
rARC Arcanist
Branch
log0
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25174
Build 34744: Run Core Tests
Build 34743: arc lint + arc unit