Manual:$wgDebugLogGroups/ja

詳細
記録グループ キーからファイル名への連想配列を設定します. If set,  output for that group will go to that file instead of the regular. Useful for enabling selective logging in production.

Log destinations may be one of the following:


 * false to completely remove from the output, including from $wgDebugLogFile.
 * string values specifying a filename or URI.
 * associative array with keys:
 * 'destination' desired filename or URI.
 * 'sample' an integer value, specifying a sampling factor (optional)
 * 'level' A \Psr\Log\LogLevel constant, indicating the minimum level log (optional, since 1.25)

When  is set to a non-default value,   will probably be ignored, and the method of configuring log files will be determined by whatever logging system is invoked by.

例
この例では、グループ「ConfirmEditExtension」のデバッグ メッセージは「debug-ext_confirmedit.log」に、「SpamRegex」のデバッグ メッセージは「debug-spam.log」に、それぞれ出力されます.

例:

高度な例:

Some common debug log groups

 * ,,   - errors
 * - deprecation warnings
 * ,,   - database
 * - all DB queries
 * - response cookies
 * - shell commands
 * ,  - hitting rate limits ( and other)
 * ,  - ResourceLoader
 * ,  - HTTP requests to external services (via the  /  classes)
 * ,,   - image-related
 * - warnings about pages that take long to parse
 * ,  - HTTP requests to external services (via the  /  classes)
 * ,,   - image-related
 * - warnings about pages that take long to parse
 * - warnings about pages that take long to parse
 * - warnings about pages that take long to parse
 * - warnings about pages that take long to parse