MCPcopy Index your code
hub / github.com/Zipstack/unstract / logs

Method logs

runner/src/unstract/runner/clients/interface.py:17–26  ·  view source on GitHub ↗

Returns an iterator object of logs. Args: follow (bool, optional): Should the logs be followed. Defaults to False. Yields: Iterator[str]: Yields logs line by line.

(self, follow=True)

Source from the content-addressed store, hash-verified

15
16 @abstractmethod
17 def logs(self, follow=True) -> Iterator[str]:
18 """Returns an iterator object of logs.
19
20 Args:
21 follow (bool, optional): Should the logs be followed. Defaults to False.
22
23 Yields:
24 Iterator[str]: Yields logs line by line.
25 """
26 pass
27
28 @abstractmethod
29 def cleanup(self, client: ContainerClientInterface | None = None) -> None:

Callers 3

stream_logsMethod · 0.45
run_commandMethod · 0.45
test_logsFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_logsFunction · 0.36