https://dagster.io/ logo
#dagster-support
Title
# dagster-support
j

Jose Estudillo

07/12/2022, 2:29 PM
👋 Hello, team! What is the best way to log from a sensor, I was expecting to be able to get the logger from the context, but it’s not available. Thanks in advance.
🤖 1
y

yuhan

07/12/2022, 5:13 PM
Hi Jose, you may capture the daemon logs on your own and inspect them. We have an open issue for tracking the task to include logger as part of the sensor content here: https://github.com/dagster-io/dagster/issues/4292
j

Jose Estudillo

07/12/2022, 5:14 PM
Thanks @yuhan
after doing some research i tried
get_dagster_logger()
I guess those wont go to the right output
thanks for your help
y

yuhan

07/12/2022, 5:16 PM
yup - as for implementation details, sensor code is being invoked in a daemon that’s separate from where your user code (e.g. code in ops) is executed. so you’ll need to capture the logs from that sensor daemon.
👍 1
🙏 1
2 Views