Skip to content
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

Native Prefect Logging in ControlFlow flow #220

Open
robfreedy opened this issue Jul 11, 2024 · 0 comments
Open

Native Prefect Logging in ControlFlow flow #220

robfreedy opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement Enhance an existing feature

Comments

@robfreedy
Copy link

robfreedy commented Jul 11, 2024

Enhancement Description

Currently, if you define a Prefect logger inside of a ControlFlow flow, the logs will not appear in the Prefect flow run logs natively.

This issue tracks adding either the Prefect logger natively or some sort of wrapper to allow for the Prefect logger logs to appear in flow run logs when run inside of a ControlFlow flow.

Use Case

from controlflow import flow
from prefect import get_run_logger

@flow
def example_controlflow():
    logger = get_run_logger()
    logger.info("Starting Baseball Control Flow")

example_controlflow()

Proposed Implementation

No response

@robfreedy robfreedy added the enhancement Enhance an existing feature label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant