Use dagster's custom loggers in standard python functions called from solids #4174
-
I can configure a custom logger (say, a file logger) which I can successfully use from within a solid from I am using the standard Reproducible example:
random_func.py
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think we can support this by providing a top-level function to build an
Will put this on the radar for 0.12.0 |
Beta Was this translation helpful? Give feedback.
-
As of 0.13.0, you can use the |
Beta Was this translation helpful? Give feedback.
As of 0.13.0, you can use the
get_dagster_logger()
function (from dagster import get_dagster_logger
) to get a logger within the body of a function that will work essentially identically tocontext.log