Skip to content

gh-146292: Add colour to http.server logs#146293

Merged
ambv merged 8 commits intopython:mainfrom
hugovk:3.15-colour-http.server
Apr 8, 2026
Merged

gh-146292: Add colour to http.server logs#146293
ambv merged 8 commits intopython:mainfrom
hugovk:3.15-colour-http.server

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Mar 22, 2026

Taking inspiration from the make dev logs for the new blog (https://github.com/python/python-insider-blog):

Image

Let's add colour to the http.server log output:

image

As usual, this respects the environment variables to control colour and the output stream's capabilities.


📚 Documentation preview 📚: https://cpython-previews--146293.org.readthedocs.build/

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented Apr 6, 2026

@picnixz @brianschubert Thanks for the reviews! Any further comments?

@AlexWaygood AlexWaygood removed their request for review April 6, 2026 21:43
@ambv ambv merged commit 2c8f26c into python:main Apr 8, 2026
60 checks passed
@hugovk hugovk deleted the 3.15-colour-http.server branch April 8, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants