Skip to content

Commit 87352cd

Browse files
authored
Merge pull request #2111 from bfirsh/document-defaults-of-logs
Document defaults of logs()
2 parents 02316ea + 67308c1 commit 87352cd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docker/api/container.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -765,16 +765,16 @@ def logs(self, container, stdout=True, stderr=True, stream=False,
765765
766766
Args:
767767
container (str): The container to get logs from
768-
stdout (bool): Get ``STDOUT``
769-
stderr (bool): Get ``STDERR``
770-
stream (bool): Stream the response
771-
timestamps (bool): Show timestamps
768+
stdout (bool): Get ``STDOUT``. Default ``True``
769+
stderr (bool): Get ``STDERR``. Default ``True``
770+
stream (bool): Stream the response. Default ``False``
771+
timestamps (bool): Show timestamps. Default ``False``
772772
tail (str or int): Output specified number of lines at the end of
773773
logs. Either an integer of number of lines or the string
774774
``all``. Default ``all``
775775
since (datetime or int): Show logs since a given datetime or
776776
integer epoch (in seconds)
777-
follow (bool): Follow log output
777+
follow (bool): Follow log output. Default ``False``
778778
until (datetime or int): Show logs that occurred before the given
779779
datetime or integer epoch (in seconds)
780780

docker/models/containers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,16 @@ def logs(self, **kwargs):
253253
generator you can iterate over to retrieve log output as it happens.
254254
255255
Args:
256-
stdout (bool): Get ``STDOUT``
257-
stderr (bool): Get ``STDERR``
258-
stream (bool): Stream the response
259-
timestamps (bool): Show timestamps
256+
stdout (bool): Get ``STDOUT``. Default ``True``
257+
stderr (bool): Get ``STDERR``. Default ``True``
258+
stream (bool): Stream the response. Default ``False``
259+
timestamps (bool): Show timestamps. Default ``False``
260260
tail (str or int): Output specified number of lines at the end of
261261
logs. Either an integer of number of lines or the string
262262
``all``. Default ``all``
263263
since (datetime or int): Show logs since a given datetime or
264264
integer epoch (in seconds)
265-
follow (bool): Follow log output
265+
follow (bool): Follow log output. Default ``False``
266266
until (datetime or int): Show logs that occurred before the given
267267
datetime or integer epoch (in seconds)
268268

0 commit comments

Comments
 (0)