Feature: Stream stdout and stderr via logging module

Open
#754 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, python
Domain
testing

Research direction

Start by tracing how testcontainers-python starts containers and currently exposes container output, then compare the requested behavior with the testcontainers-java approach. Done means stdout and stderr are forwarded through Python's logging module while a container runs, including during startup waits, with tests covering the new behavior.

Written by the indexing model from the issue text.

Description

🚀 enhancement

In testcontainers-java, the stdout and stderr of the container are streamed to slf4j, making it easy to follow up on the logs of the containers as the test progresses. It's really useful when container takes time to start (waiting for the condition).

I think it's beneficial to have same feature in testcontainers python

Dominant language
Python
Stars
2.3k
Forks
397
Avg merge
8d 16h
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from testcontainers/testcontainers-python

All issues in testcontainers/testcontainers-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.