DiamondLightSource / dodal

Ophyd devices and other utils that could be used across DLS beamlines
Apache License 2.0
2 stars 8 forks source link

Allow independent DEBUG logging on a per-device basis #184

Closed dperl-dls closed 5 months ago

dperl-dls commented 1 year ago

For immediate use, to investigate an I03 issue where Zebra PV interactions are timing out, I am adding a hacky post-create function to i03.zebra (probably won't try to merge this into main).

In the longer term, when we move to decorators for beamline device declarations, we should have one which, post device creation, modifies the device's .log to be a LoggingAdapter pointing to a logger with handler(s) always set to DEBUG rather than the default log level

dperl-dls commented 1 year ago

Could make sense to do this in ophyd