https://prefect.io logo
k

Khuyen Tran

11/30/2022, 4:32 PM
Tips of the week Prefect logger allows you to leverage Rich to insert their own custom color / styling. Here is an example:
Copy code
from prefect import flow, get_run_logger

@flow
def cow_say():
    logger = get_run_logger()
    <http://logger.info|logger.info>("I'm in [red]danger[/red]!")

if __name__ == "__main__":
    cow_say()
View more styles in Rich’s documentation.
gratitude thank you 3
🙌 8
❤️ 3
🦜 1
🙌🏽 1
2 Views