[wp-trac] [WordPress Trac] #28319: Add hook to WP_Error for logging and report purposes
WordPress Trac
noreply at wordpress.org
Wed Jan 7 01:58:27 UTC 2015
#28319: Add hook to WP_Error for logging and report purposes
-----------------------------------+-----------------------------
Reporter: ebinnion | Owner: johnbillion
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch | Focuses:
-----------------------------------+-----------------------------
Comment (by dd32):
Replying to [comment:29 ericlewis]:
> Replying to [comment:24 dd32]:
> > A logging interface (PSR-3 style) seems to be a far better option
IMHO.
>
> How would we support a PSR-3 style logging interface without PHP
namespace support?
We'd have to skip anything in the spec that requires something we can't
support. That would mean we'd skip the Namespaces and Traits, and probably
just offer up a singleton which could be accessed from anywhere/assigned
to a class property.
So when I said PSR3-style, I guess I meant something based off that
design, but WPised into something we can actually use flexibly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28319#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list