How to expose a python logger to compute logs? #23690
Unanswered
adam-bloom
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I am struggling with exactly this issue. Did you ever find a solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've read a number of related questions, and feel like I'm missing something basic. I have used managed python loggers for before for a python logger that I want to behave as a
context.logand end up in dagster's event logs. I'm adding another third-party logger that has logs useful for debug/diagnostics. I don't want to chew up dagster event log storage - I have no concern with treating these logs as compute logs that go to stdout/stderr. However, it seems that python loggers not configured as amanaged_python_loggersjust disappear into the ether? What am I missing for adding a basic stdout/stderr handler to all python loggers, and then only redirectingmanaged_python_loggersto the event log? Can I usedagster_handler_configfor that? The docs (https://docs.dagster.io/concepts/logging/python-logging#configuring-python-log-handlers-) suggested that it only applied to the dagster created loggers, but maybe I missed something.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions