def logs(self, pod=None):
if pod is None:<EOL><INDENT>return {pod.status.pod_ip: self.logs(pod) for pod in self.pods()}<EOL><DEDENT>return self.core_api.read_namespaced_pod_log(pod.metadata.name,<EOL>pod.metadata.namespace)<EOL>
Logs from a worker pod

        You can get this pod object from the ``pods`` method.

        If no pod is specified all pod logs will be returned. On large clusters
        this could end up being rather large.

        Parameters
        ----------
        pod: kubernetes.client.V1Pod
            The pod from which we want to collect logs.

        See Also
        --------
        KubeCluster.pods
        Client.get_worker_logs