src/Data/FailedLogin.php
public function level() {

		$this->count_attempts( 300 );

		switch ( TRUE ) {
			case ( $this->attempts > 2 && $this->attempts <= 100 ) :
				return Logger::NOTICE;
			case ( $this->attempts > 100 && $this->attempts <= 590 ) :
				return Logger::WARNING;
			case ( $this->attempts > 590 && $this->attempts <= 990 ) :
				return Logger::ERROR;
			case ( $this->attempts > 990 ) :
				return Logger::CRITICAL;
		}

		return 0;
	}
public function level() {

		$this->count_attempts( 300 );

		switch ( TRUE ) {
			case ( $this->attempts > 2 && $this->attempts <= 100 ) :
				return Logger::NOTICE;
			case ( $this->attempts > 100 && $this->attempts <= 590 ) :
				return Logger::WARNING;
			case ( $this->attempts > 590 && $this->attempts <= 990 ) :
				return Logger::ERROR;
			case ( $this->attempts > 990 ) :
				return Logger::CRITICAL;
		}

		return 0;
	}
public function level ( ) { $ this -> count_attempts ( 300 ) ; switch ( TRUE ) { case ( $ this -> attempts > 2 && $ this -> attempts <= 100 ) : return Logger :: NOTICE ; case ( $ this -> attempts > 100 && $ this -> attempts <= 590 ) : return Logger :: WARNING ; case ( $ this -> attempts > 590 && $ this -> attempts <= 990 ) : return Logger :: ERROR ; case ( $ this -> attempts > 990 ) : return Logger :: CRITICAL ; } return 0 ; }
Determine severity of the error based on the number of login attempts in
last 5 minutes.

@return int
Determine severity of the error based on the number of login attempts in last 5 minutes .