public function getStatisticsLogsDev():array
    {
        $last = array_values((AbstractServer::getLogs("dev")));
        $success = 0;
        $critical = 0;
        $others = 0;
        $errors = 0;
        for ($i = 0; $i < count($last); $i++) {
            $one = $last[$i];
            if ($one['code'] == 200) {
                $success++;
            } else {
                $errors++;
                if ($one['code'] == 500) {
                    $critical++;
                } else {
                    $others++;
                }
            }
        }
        return (array("errors" => $errors, "critical" => $critical,
            "success" => $success, "others" => $others));
    }
public function getStatisticsLogsDev():array
    {
        $last = array_values((AbstractServer::getLogs("dev")));
        $success = 0;
        $critical = 0;
        $others = 0;
        $errors = 0;
        for ($i = 0; $i < count($last); $i++) {
            $one = $last[$i];
            if ($one['code'] == 200) {
                $success++;
            } else {
                $errors++;
                if ($one['code'] == 500) {
                    $critical++;
                } else {
                    $others++;
                }
            }
        }
        return (array("errors" => $errors, "critical" => $critical,
            "success" => $success, "others" => $others));
    }
public function getStatisticsLogsDev ( ) : array { $ last = array_values ( ( AbstractServer :: getLogs ( "dev" ) ) ) ; $ success = 0 ; $ critical = 0 ; $ others = 0 ; $ errors = 0 ; for ( $ i = 0 ; $ i < count ( $ last ) ; $ i ++ ) { $ one = $ last [ $ i ] ; if ( $ one [ 'code' ] == 200 ) { $ success ++ ; } else { $ errors ++ ; if ( $ one [ 'code' ] == 500 ) { $ critical ++ ; } else { $ others ++ ; } } } return ( array ( "errors" => $ errors , "critical" => $ critical , "success" => $ success , "others" => $ others ) ) ; }
Get logs statistics for dev
@return array Logs dev statistics
@throws \Exception
Get logs statistics for dev