How to configure Python structlog to work with Dagster? #32284
Replies: 1 comment 1 reply
-
|
Hi @jimmyzzxhlh ! The dagster-native log capturing feature relies on hooking into the standard structlog.configure(logger_factory=structlog.stdlib.LoggerFactory())This will force That being said, it's often easier to just rely on stderr/stdout log capture (rather than emitting logs into the dagster event stream) if you expect a high volume of logs. |
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.
-
I'm using
structlogin my code for logging information, e.g.And I'm trying to configure a
dagster.yamlin $DAGSTER_HOME as follows (my modules are all underdatapipeline, so the above__name__will print something likedatapipeline.<submodule>...But I'm only seeing the logs being emitted in stdout/stderr in Dagster, and more importantly, the logs are not streamed in real-time (I can only view the logs after the run is finished)
Appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions