concrete/src/User/Login/LoginService.php
public function logLoginAttempt($username, array $errors = [])
    {
        if ($this->app) {
            $entry = $this->app->make(LoginAttempt::class, [
                $username,
                $this->request ? $this->request->getPath() : '',
                $this->getGroups($username),
                $errors
            ]);

            $context = $entry->getContext();
            $context['ip_address'] = (string) $this->ipService->getRequestIPAddress();
            $this->logger->info($entry->getMessage(), $context);
        }
    }
public function logLoginAttempt($username, array $errors = [])
    {
        if ($this->app) {
            $entry = $this->app->make(LoginAttempt::class, [
                $username,
                $this->request ? $this->request->getPath() : '',
                $this->getGroups($username),
                $errors
            ]);

            $context = $entry->getContext();
            $context['ip_address'] = (string) $this->ipService->getRequestIPAddress();
            $this->logger->info($entry->getMessage(), $context);
        }
    }
public function logLoginAttempt ( $ username , array $ errors = [ ] ) { if ( $ this -> app ) { $ entry = $ this -> app -> make ( LoginAttempt :: class , [ $ username , $ this -> request ? $ this -> request -> getPath ( ) : '' , $ this -> getGroups ( $ username ) , $ errors ] ) ; $ context = $ entry -> getContext ( ) ; $ context [ 'ip_address' ] = ( string ) $ this -> ipService -> getRequestIPAddress ( ) ; $ this -> logger -> info ( $ entry -> getMessage ( ) , $ context ) ; } }
Add a log entry for this login attempt

@param $username
@param array $errors
Add a log entry for this login attempt