Manual talk:$wgDebugLogGroups

Jump to navigation Jump to search

About this board

"Later versions of MediaWiki will not use this variable unless $wgDebugLogFile is also set."

Dinoguy1000 (talkcontribs)

What are the "later versions" this note is talking about? As far as I can tell, this isn't true for current/recent versions of MediaWiki, and the note it replaced in this edit (pinging @MarkAHershberger: since he's the one who made the edit) stated explicitly that $wgDebugLogFile is not required to use $wgDebugLogGroups.

MarkAHershberger (talkcontribs)

Well, it has been two years since I made that edit and I don't remember making it or why. I've played around with the debugging logs, but not enough to know enough to say something this definitive.

I imagine I had a good reason for saying it, but I should have supported it better. Feel free to revert.

Reply to ""Later versions of MediaWiki will not use this variable unless $wgDebugLogFile is also set.""
Kghbln (talkcontribs)

Apart form defining the log groups: Do I have to set the follwing in my "LocalSettings.php" file, e.g.:

error_reporting( -1 );
ini_set( 'display_errors', 1 );

The reason I am asking is that I would not like to expose anything that is logged to the visitor's attention but still log the issues they create. So I would like to avoid such a setting as shown above.

BDavis (WMF) (talkcontribs)

Neither of these settings should be needed or desired in a production wiki.

Kghbln (talkcontribs)

Thanks a lot for confirming. Otherwise it would only be half of the fun to log errors etc. I asked since the settings above manipulate the PHP layer which may influence everything that comes behind it. The logging is however smart enough. :)

Reply to "Triggering file logging"
There are no older topics