from typing import Iterator

from l4d2host.service_control import stream_journal


def stream_instance_logs(name: str, *, lines: int = 200, follow: bool = True) -> Iterator[str]:
    yield from stream_journal(name, lines=lines, follow=follow)
