It's better when it's simple

User Tools

Site Tools


Login/Logoff Logging Plugin

Compatible with DokuWiki

  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes

plugin Logs all login/logout actions and usage of admin tools with time, IP and username

Last updated on
Admin, Action

Tagged with authentication, logging

This plugin will log all logins, logouts and failed login attempts to data/cache/loglog.log. Optionally, you can configure the plugin to send warning emails when certain limits for those activities have been exceeded. The default limits are 10 failed login attempts and 50 successful logins per minute.

The log can be viewed on the admin screen. A monthly report will be sent if you enter an email in the plugin configuration.

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.


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);

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:

message part icon
logged off
logged in permanently
logged in
plugin/loglog.txt · Last modified: 2022-07-17 22:19 by coastGNU

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki