Tom Szumowski
08/02/2022, 7:30 PMprint
statements in my tasks, but not <http://logging.info|logging.info>
.
I was wondering what's needed to set up logging for GCP (GKE).
I found this document, but wasn't sure what settings would be appropriate for GCP. FIgured I'd check here first before diving too deep.
https://docs.flyte.org/projects/cookbook/en/latest/auto/deployment/configure_logging_links.html#sphx-glr-auto-deployment-configure-logging-links-py
Thank you!Ketan (kumare3)
Yee
Tom Szumowski
08/02/2022, 9:20 PM@workflow
function is good for me.
@workflow
def my_wf(a: int, b: str) -> Tuple[int, str]:
logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(module)s - %(funcName)s: %(message)s",
level=<http://logging.INFO|logging.INFO>,
datefmt="%Y-%m-%d %H:%M:%S"
)
Ketan (kumare3)
Tom Szumowski
08/03/2022, 1:46 PMlogging.basicConfig(...)
should not have solved the issue then?Ketan (kumare3)
Tom Szumowski
08/03/2022, 2:04 PMYee
Tom Szumowski
08/03/2022, 2:13 PMYee
FLYTE_SDK_LOGGING_LEVEL
env var. just set that to 10 and you should get everything including debugTom Szumowski
08/03/2022, 2:19 PMFLYTE_SDK_LOGGING_LEVEL
?Ketan (kumare3)
Dave Liu
01/06/2023, 6:05 PMBasicConfig(force=True)