Jump to content

Manual talk:$wgDebugLogFile/Flow

About this board

Valerio Bozzolan (talkcontribs)

The documentation should say how to use the default webserver log file (I mean the standard error_log() function in PHP).

73.63.153.195 (talkcontribs)

Its really a PHP thing. You can easily write simple php statements in LocalSettings.php that do this like:

error_log("LDAPStack [OK] - JSON file found")


While that is not an error message per-se its just text end of day. However all of these will show up classified as 'errors' in php-fpm log and http logs as it is an 'error_log' facility.

-HTH

Valerio Bozzolan (talkcontribs)

Uh? I mean, how to tell MediaWiki to just rely on error_log() globally for its error messages, like whatever PHP application does as default.

Ciencia Al Poder (talkcontribs)

Probably by doing this:

$wgDebugLogGroups = array(
	'exception' => ini_get('error_log'),
	'error' => ini_get('error_log'),
);
Valerio Bozzolan (talkcontribs)

Nice workaround but honestly I don't know if manually writing in the same log file concurrently used by the webserver it's a good idea.

Reply to "PHP's error_log()"
There are no older topics