hutch_python.log_setup.log_objects¶
- hutch_python.log_setup.log_objects(*objects, level: str = 'DEBUG', console: bool = True)¶
Configure a custom logging handler on the specified object(s), and record log messages to files and (optionally) to the console.
- Parameters:
*objects – The
OphydObject
instances.level (str, optional) – The minimum logging level to allow. Note that the console logger must still have its level set appropriately. The file logger should be OK as it has a low default level (5, below DEBUG).
console (bool, optional) – Apply object logging to the console as well as the rotating log file.