-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color Output on github actions #495
Comments
structlog checks if the terminal is a tty, which it probably isn't for GHA: structlog/src/structlog/_config.py Lines 37 to 42 in 74cdff9
You'll have to configure it by hand and explicitly pass |
I've seen a lot of talks about the use of the environment variable References: |
This is an interesting question and transition period. structlog has exploded for use-cases that I never anticipated. CLI output used to be just a perk for development. I guess we [cs]ould accept the new role and make it nicer out of the box… |
Hello, I am trying to use structlog in a github action job and I noticed that there isn't any color output. Is there a setting that I'm missing to enable colors in github actions?
Here's my github actions job run:
https://github.com/ecs-jnguyen/test-actions-colors/actions/runs/4357219988/jobs/7616263866
Here is the python code that I'm using:
The text was updated successfully, but these errors were encountered: