ApiLogin.php:
LoggerFactory::getInstance( 'authevents' )->info( 'Login attempt', [ 'event' => 'login', 'successful' => $authRes === 'Success', 'loginType' => $loginType, 'status' => $authRes, ] );
SpecialUserLogin.php:
protected function logAuthResult( $success, $status = null ) { LoggerFactory::getInstance( 'authevents' )->info( 'Login attempt', [ 'event' => 'login', 'successful' => $success, 'status' => $status, ] ); }
See also: T246462: SpecialCreateAccount::logAuthResult() should include the username