wp-local-toolbox icon indicating copy to clipboard operation
wp-local-toolbox copied to clipboard

Control DEBUG log Verbosity

Open jb510 opened this issue 9 years ago • 3 comments

Interesting idea in AWP that might apply here. Using an mu-plugin to control error log verbosity. So on "production" you could keep WP_DEBUG on, but only log fatals for example

http://wordpress.stackexchange.com/a/103043/2932

Just an idea... I'll play with it later.

jb510 avatar Apr 27 '15 21:04 jb510

From @jdevalk : https://gist.github.com/jdevalk/279c2564ecf72e28f11c

jb510 avatar Apr 29 '15 14:04 jb510

Well that looks pretty dead simple.

It'd be nice if we could get it down to two constants - one to toggle it on/off and another optional one to change the log file path. On mobile, so I can't do much research.

Found this, may or may not be relevant: http://wordpress.stackexchange.com/questions/47123/how-to-define-wp-debug-as-true-outside-of-wp-config-php

joeguilmette avatar Apr 30 '15 01:04 joeguilmette

What about hooking this up to WPLT_NOTIFY so you could receive notifications of a fatal in production?

joeguilmette avatar May 05 '15 17:05 joeguilmette