Manual:$wgDebugLogGroups/zh

详情
设置一个数组，日志组为键文件名为值. 如果设置，该日志组的$DebugLog输出将转到设置的文件里而不是常规的$DebugLogFile. 对生产环境下选择性日志非常有用.

日志目标可以是以下之一：


 * 设置为false将完全禁用日志输出，包括$wgDebugLogFile.
 * 设置字符串类型的值将认定为文件名或者URL.
 * 设置一个带键的关联数组：
 * 'destination' 所需的文件名或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.

Example
This example logs debug messages of group "ConfirmEditExtension" to "debug-ext_confirmedit.log" and those of group "SpamRegex" to "debug-spam.log".

Example:

Advanced example:

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