Johnny Williamson wrote:
I'm not seeing any of my debug statements in the
appropriate log files. Here
are the steps I've taken.
1. Created a local folder in the wiki file structure called 'debug'. (I'll
be sure to remove it later.)
2. Created files within that folder and set $wgDebugLogGroups to point to
these files within 'LocalSettings.php'.
3. Ran a debug statement using wfDebugLog like so: wfDebugLog(
'myDebugLogAlias', 'Testing Debug!' );
I'm not sure what's going on, but nothings printing to the log files. Not
even for the wfDebug global function. Any suggestions?
For wfDebug() you need to set $wgDebugLogFile not $wgDebugLogGroups.
If wfDebug() is not working after correctly configuring
$wgDebugLogFile, the most likely explanation is file permissions, i.e.
the file is not writable by the webserver.
On Linux, even experienced system administrators can hit unexpected
permissions errors when their distro imposes AppArmor or SELinux.
Attaching to the webserver with "strace -e trace=file" can help to
confirm this if you are skeptical, it will show you the failing syscalls.
Windows has its own ACL-based file permissions system which is mostly
hidden from end users, and thus can easily take you by surprise.
The second-most likely explanation is the common problem of editing
the wrong configuration file, or the right file in the wrong way. Note
that MediaWiki settings are case-sensitive and must be set after the
inclusion of DefaultSettings.php.
-- Tim Starling