[wp-trac] [WordPress Trac] #56035: Error logging improvements

WordPress Trac noreply at wordpress.org
Mon Aug 1 15:08:11 UTC 2022


#56035: Error logging improvements
-------------------------+------------------------------
 Reporter:  galbaras     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Site Health  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, thanks for the ticket!

 Replying to [ticket:56035 galbaras]:
 > Consolidation of all messages to one log file. I sometimes see the same
 message in error_log and wp-admin/error_log. Sometimes, I see admin
 messages only in error_log, and it's often a hassle cross-referencing
 issues that may occur on the front-end, but are an effect of some admin
 issue.
 > ...
 > Therefore, I suggest having one file where all messages are written,
 whether they are written somewhere else as well or not.

 I think it depends on how error logging is set up on a particular web
 host: per directory, per site, etc.

 I believe this can already be addressed without any core changes by
 defining the `WP_DEBUG_LOG` constant, which logs to `wp-content/debug.log`
 by default, but also allows a custom path to be specified.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56035#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list