Skip to content

Color Output on github actions #495

@ecs-jnguyen

Description

@ecs-jnguyen

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:

import structlog

if __name__ == "__main__":
    logger = structlog.get_logger()
    logger.info("hello", name="me", age=123)
    logger.warning("bye", name="me", age=123)
    logger.error("ohno", name="me", age=123)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions