Topic on Manual talk:$wgDebugLogGroups

wgDebugLogGroups: logfile specified but not created - no SELinux entries

2
UweAtwork (talkcontribs)

In the hope to find the root-cause of authentication-issues, my configuration in LocalSettings-php looks like this:



$wgDebugLogFile = "/opt/log/mediawiki_debug.log";

$wgDebugLogGroups['authentication'] = "/opt/log/authentication.log";

$wgDebugLogGroups['login'] = "/opt/log/login.log";

$wgDebugLogGroups['PluggableAuth'] = "/opt/log/LDAP-Pluggable.log";

$wgDebugLogGroups['LDAP'] = "/opt/log/LDAP.log";

$wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] = "/opt/log/LDAPProvider_Client.log";

$wgDebugLogGroups['LDAPGroups'] = "/opt/log/LDAPGroups.log";

$wgDebugLogGroups['LDAPUserInfo'] = "/opt/log/LDAPUserInfo.log";

$wgDebugLogGroups['LDAPAuthentication2'] = "/opt/log/LDAPAuthentication2.log";

$wgDebugLogGroups['LDAPAuthorization'] = "/opt/log/LDAPAuthorization.log";



When I delete "/opt/log/mediawiki_debug.log" it sometimes gets recreated during restart of httpd - but not always (even if the service is running and the site is accessible).

Due to missing timestamps in "/opt/log/mediawiki_debug.log" the entries are useless.

I did not find any information about how to configure logging.

Is it possible to configure the structure of log-entries (like in log4j)?

All other files (like "/opt/log/LDAPAuthentication2.log") do not exist.

How to get that working? SELinux does not block file-access.

BDavis (WMF) (talkcontribs)
Reply to "wgDebugLogGroups: logfile specified but not created - no SELinux entries"