Hello, is it possible to add a logger to a sensor?...
# ask-community
i
Hello, is it possible to add a logger to a sensor?
Copy code
AttributeError: 'SensorEvaluationContext' object has no attribute 'log'
I hacked this in my test with
Copy code
context = dagster.build_sensor_context()
context.log = logging.Logger('test')
but running the sensor in dagit gave the above error 🙂
✅ 1
🙌 1
s
Hi @Irven Aelbrecht, we don't currently support this, but would ultimately like to. Here's the issue where we're tracking it: https://github.com/dagster-io/dagster/issues/4292
✅ 1