A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.LogIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have DEBUG level. If you whish to have different log level messages, you should implement subclasses that log to those levels. See, for example, PyTango.InfoIt.
A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method as DEBUG level records.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.DebugIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have DEBUG level.
A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method as INFO level records.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.InfoIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have INFO level.
A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method as WARN level records.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.WarnIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have WARN level.
A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method as ERROR level records.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.ErrorIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have ERROR level.
A class designed to be a decorator of any method of a PyTango.DeviceImpl subclass. The idea is to log the entrance and exit of any decorated method as FATAL level records.
Example:
class MyDevice(PyTango.Device_4Impl):
@PyTango.FatalIt()
def read_Current(self, attr):
attr.set_value(self._current, 1)
All log messages generated by this class have FATAL level.