This is an old revision of the document!
Table of Contents
Login/Logoff Logging Plugin
Compatible with DokuWiki
Hrun, Detritus
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
This Plugin will log all logins, logouts and failed login attempts to data/cache/loglog.log
. The log can be viewed on the admin screen.
Download and Installation
Download and install the plugin using the Plugin Manager using the download link given above. Refer to Plugins on how to install plugins manually.
Changes
- Merge pull request #51 from dokuwiki-translate/lang_update_656_168663… (2023-06-13 15:02)
- translation update (2023-06-13 07:00)
- Merge pull request #49 from dokuwiki-translate/lang_update_550_167458… (2023-01-24 19:28)
- translation update (2023-01-24 19:10)
- Restore data in admin overview (2020-11-16 12:18)
- Version upped (2020-11-12 23:50)
- minor German lang fix (2020-11-12 09:34)
- Merge pull request #44 from splitbrain/smarter-alerts (2020-11-12 09:33)
Custom Auth-Plugin logging
The plugin might fail to log logins made through auth plugins other than authplain. Plugin authors can make their plugins compatible by emitting a PLUGIN_LOGLOG_LOG
event whenever they want to log a login/logout action. The event requires two fields in the $data
array: message
for the log message and user
for the affected user.
Here's an example from the SalesForce Auth Plugin:
$log = array('message' => 'logged in via Salesforce', 'user' => $this->user); trigger_event('PLUGIN_LOGLOG_LOG',$log);
The message can contain whatever you want to log. However, if you use the following strings in your message, an appropriate icon is associated with your message: