XF 1.5 Disable error logging


Well-known member
A bit of an odd request here, but it's for a reason.

We are including the XF bootstrapping inside a Wordpress plugin so that we can get access to the user object for SSO. The problem is that several of the Wordpress plugins generate notices/warnings due to poor coding, and these end up in the XF error log thousands of times. I would rather these warnings go to the server's error log and have the XF error logging only show me issues relevant to XF.

So the question is - What is the best way to disable the XF error reporting from within my plugin? This will only affect our Wordpress installation.

Our bootstrapping code looks like this:

$fileDir = '/home/site/public/forum';

$startTime = microtime(true);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

You could try
This would disable all of the xf error logging I guess.
Top Bottom