Closed Chrico closed 5 years ago
@Biont added init implementation. Would be nice to have some review/opinion. :)
Maybe needs also some documentation about the hook.
@Chrico Can we put that behind WP_DEBUG
and/or otherwise make this optional?
Since it just fires an actions on exceptions, it will not hurt to add this logger. Maybe we could use the NullLogger if no WP_DEBUG
, but e.G. packages like Wonolog are still working, even if WP_DEBUG
is disabled. :)
I might run a few performance tests when I find the time. Yes, this logger is probably the most lightweight way of handling it imaginable, so I doubt it will cause any slowdown, but I would rather be sure about it. An exception via config is easily added later, so I'm in no hurry, though
Released in version 3.1.0
Currently there is no way to debug the mu-plugin itself. Stash allows to add some logging to every
Stash\Pool
[1]This can be added when creating instances of the Pool via
Stash\Pool::setLogger()
.I would like to see something like a
ActionLogger
which just triggers a WordPress action:[1] http://www.stashphp.com/Integration.html#logging