public function logs($minLevel = 'error')
    {
        $uri = 'history.trim';
        $uriData = [
            'min_level' => $minLevel
        ];

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function logs($minLevel = 'error')
    {
        $uri = 'history.trim';
        $uriData = [
            'min_level' => $minLevel
        ];

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function logs ( $ minLevel = 'error' ) { $ uri = 'history.trim' ; $ uriData = [ 'min_level' => $ minLevel ] ; try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
View SickRage's log.

@param string $minLevel debug, info, warning, error
@return string
@throws InvalidException
View SickRage s log .