def logs(self, follow=False):
return self.d.logs(self.get_id(), stream=True, follow=follow)<EOL>
Get logs from this container. Every item of the iterator contains one log line
terminated with a newline. The logs are encoded (they are bytes, not str).

Let's look at an example::

    image = conu.DockerImage("fedora", tag="27")
    command = ["bash", "-c", "for x in `seq 1 5`; do echo $x; sleep 1; done"]
    container = image.run_via_binary(command=command)
    for line in container.logs(follow=True):
        print(line)

This will output

.. code-block:: none

    b'1\\n'
    b'2\\n'
    b'3\\n'
    b'4\\n'
    b'5\\n'

:param follow: bool, provide new logs as they come
:return: iterator (of bytes)