def logs(self, follow=False):
<EOL>follow = ["<STR_LIT>"] if follow else []<EOL>cmdline = ["<STR_LIT>", "<STR_LIT>"] + follow + [self._id or self.get_id()]<EOL>output = run_cmd(cmdline, return_output=True)<EOL>return output<EOL>
Get logs from this container. Iterator has one log line followed by a newline in next item.
The logs are NOT encoded (they are str, not bytes).

Let's look at an example::

    image = conu.PodmanImage("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

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

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