forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobalLogging.php
35 lines (30 loc) · 1.13 KB
/
GlobalLogging.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
$wmgLogDir = "/var/log/mediawiki";
$wgDebugLogFile = "$wmgLogDir/$wmgHostname.log";
$wgDBerrorLog = "$wmgLogDir/debuglogs/database.log";
$wgDebugLogGroups = array(
'404' => "$wmgLogDir/debuglogs/404.log",
'api' => "$wmgLogDir/debuglogs/api.log",
'captcha' => "$wmgLogDir/debuglogs/captcha.log",
'CentralAuth' => "$wmgLogDir/debuglogs/CentralAuth.log",
'collection' => "$wmgLogDir/debuglogs/collection.log",
'CreateWiki' => "$wmgLogDir/debuglogs/CreateWiki.log",
'Echo' => "$wmgLogDir/debuglogs/Echo.log",
'error' => "$wmgLogDir/debuglogs/php-error.log",
'exception' => "$wmgLogDir/debuglogs/exception.log",
'exec' => "$wmgLogDir/debuglogs/exec.log",
'Math' => "$wmgLogDir/debuglogs/Math.log",
'OAuth' => "$wmgLogDir/debuglogs/OAuth.log",
'redis' => "$wmgLogDir/debuglogs/redis.log",
'spf-tmp' => "$wmgLogDir/debuglogs/spf-tmp.log",
'thumbnail' => "$wmgLogDir/debuglogs/thumbnail.log",
);
if ( $wgCommandLineMode ) {
error_reporting( -1 );
ini_set( 'display_startup_errors', 1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
}