public function getLoggingPartial($lines = 30, $type = 'all')
    {
        $uri = 'logging.partial';
        $uriData = [
            'lines' => $lines,
            'type' => $type
        ];

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

        return $response->getBody()->getContents();
    }
public function getLoggingPartial($lines = 30, $type = 'all')
    {
        $uri = 'logging.partial';
        $uriData = [
            'lines' => $lines,
            'type' => $type
        ];

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

        return $response->getBody()->getContents();
    }
public function getLoggingPartial ( $ lines = 30 , $ type = 'all' ) { $ uri = 'logging.partial' ; $ uriData = [ 'lines' => $ lines , 'type' => $ type ] ; try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Get a partial log

@param int $lines Number of lines. Last to first. Default 30
@param string $type Type of log | all(default), error, info, debug
@return string
@throws InvalidException
Get a partial log