Extension:UserLoginLog

This extension logs login attempts and publicly displays the IP address of the person who logged in, or attempted to. The new log appears in the list on the Special:Logs page.

Installation
Create a directory called UserLoginLog in your wiki's extensions directory. Then, copy the source code from OrganicDesign:Extension:UserLoginLog.php and save it as a file called UserLoginLog.php into the newly created directory.

Add an include statement into your LocalSettings.php file to include the downloaded UserLoginLog.php file as usual, for example:

Note: All MediaWiki logging must be associated with a user, but at the time a login error occurs there is no known user, so the user ID of a user to associate the log by in these cases needs to be specified in the $wgServerUser global variable, eg: The default ID used is 1, but you can create a user for this like "Nobody", "Wiki" or "Server" and use its ID instead. To find the newly created user's ID, login as the new user and go to the preferences page.