:wave: Hello, team! What is the best way to log fr...
# ask-community
j
👋 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
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
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
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