Manual talk:$wgDebugLogFile
Add topicAppearance
From mediawiki.org
Latest comment: 4 years ago by Valerio Bozzolan in topic PHP's error_log()
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.
The documentation should say how to use the default webserver log file (I mean the standard error_log()
function in PHP). Valerio Bozzolan (talk) 07:24, 13 July 2019 (UTC) Reply
- 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 73.63.153.195 (talk) 20:22, 4 December 2020 (UTC) Reply
- 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. Valerio Bozzolan (talk) 16:52, 29 January 2021 (UTC) Reply - Probably by doing this:
- Ciencia Al Poder (talk) 17:55, 29 January 2021 (UTC) Reply
$wgDebugLogGroups = array( 'exception' => ini_get('error_log'), 'error' => ini_get('error_log'), );
- 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. Valerio Bozzolan (talk) 22:34, 31 January 2021 (UTC) Reply