[wp-trac] [WordPress Trac] #38735: Custom PATH for debug.log
WordPress Trac
noreply at wordpress.org
Fri Nov 11 04:03:15 UTC 2016
#38735: Custom PATH for debug.log
---------------------------+-----------------------------
Reporter: mesaquesoares | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.6.1
Severity: normal | Resolution: duplicate
Keywords: | Focuses: administration
---------------------------+-----------------------------
Changes (by dd32):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Adding a constant to define the location of the debug file seems a little
overkill to me here, although adding some functionality (such as setting
`WP_DEBUG_LOG` to a string to allow defining the path, see #18391)
The two obvious choices to me right now would be:
a) Instead of using `WP_DEBUG_LOG` in the `wp-config.php` file, set
`log_errors` and `error_log` to the location you wish to have them logged.
b) use a `auto_prepend_file` at the PHP level and force `WP_DEBUG_LOG` off
(if you can't trust your WordPress installs to have that constant
disabled/not set), and setting the PHP ini settings to where you want
them.
I'm marking this as a duplicate of #18391 though due to the functionality
request being the same.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38735#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list