[Mediawiki-l] Turning on debugging messages in MediaWiki

Brion Vibber brion at pobox.com
Tue Feb 20 20:14:22 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lisa Ridley wrote:
> I'm a long-time user of MediaWiki software, and recently ventured into 
> writing extensions and code modifications.  I noticed when perusing the 
> code files that there are a number of debugging messages scattered 
> throughout with phrases calling wfDebug.  It appears that these messages 
> are turned off in the production releases of MediaWiki.
> 
> Can anyone tell me where the "switch" resides that will turn on these 
> messages?

Set $wgDebugLogFile to point to a (writable) file; debug messages will
be sent there.

Note that you can also assign messages to individual log files by using
wfDebugLog() instead of wfDebug() and setting up separate files for the
groups you're interested in in $wgDebugLogGroups

- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF21adwRnhpk1wk44RAj5DAKDJjMKGTeV8NOyVUPN67aXqyCpFYQCfU9O2
7ZFG8h83Bc77Ydp8U6aCJuY=
=Asqr
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list