DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:loglog

This is an old revision of the document!


Login/Logoff Logging Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin Logs all login and logout actions with time, IP and username

Last updated on
2017-02-08
Provides
Admin, Action
Repository
Source

Tagged with authentication, logging

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

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

Changes

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:

message part icon
logged off
logged in permanently
logged in
failed
plugin/loglog.1527372181.txt.gz · Last modified: 2018-05-27 00:03 by Klap-in