Core
provide.foundation.streams.core
¶
TODO: Add module docstring.
Functions¶
ensure_stderr_default
¶
Ensure the log stream defaults to stderr if it's stdout.
Source code in provide/foundation/streams/core.py
get_log_stream
¶
Get the current log stream.
Note: High complexity is intentional for robust stream handling across test/prod.
Source code in provide/foundation/streams/core.py
set_log_stream_for_testing
¶
Set the log stream for testing purposes.
This function not only sets the stream but also reconfigures structlog if it's already configured to ensure logs actually go to the test stream.