Module TestLogMonitor :: Class TestLogMonitor
[hide private]
[frames] | no frames]

Class TestLogMonitor

source code

AccessEngine.AEMonitor.AEMonitor --+
                                   |
                                  TestLogMonitor

Logs information sent to output devices to using the SUE logging system. The format of the output is intended to be used in automated regression testing.

Instance Methods [hide private]
 
init(self)
Initialize the monitor instance variables.
source code
string
getName(self)
Gets the localized name of this monitor.
source code
list of string
getEventNames(self)
Gets the event categories to be logged.
source code
list of string
getEventDefaults(self)
Gets the default event categories to log.
source code
AEDevice.AEDeviceEvent class
getEventType(self)
Gets the AEDevice.AEDeviceEvent base class to indicate the type of events this monitor wants to buffer.
source code
 
show(self, event, value=None, dev=None, sem=None, layer=None)
Buffers additional details about how the AEEvent was handled by various AEScripts and tasks.
source code
Instance Variables [hide private]
string last_dev
Name of the last device to which output was sent
Method Details [hide private]

getName(self)

source code 
Gets the localized name of this monitor.
Returns: string
Monitor name

getEventNames(self)

source code 
Gets the event categories to be logged.
Returns: list of string
Event categories

getEventDefaults(self)

source code 
Gets the default event categories to log.
Returns: list of string
Event categories

getEventType(self)

source code 
Gets the AEDevice.AEDeviceEvent base class to indicate the type of events this monitor wants to buffer.
Returns: AEDevice.AEDeviceEvent class
Base type of the event this monitor should buffer

show(self, event, value=None, dev=None, sem=None, layer=None)

source code 
Buffers additional details about how the AEEvent was handled by various AEScripts and tasks. The event is only provided as a means of filtering information.
Parameters:
  • event (AEDevice.AEDeviceEvent) - Wrapper giving the direction of a command (input/output) and the command name
  • value (object) - Value of the command sent to/from a device
  • sem (integer) - Semantic constant indicating the kind of output
  • layer (integer) - Layer constant indicating from where the event came
  • dev (AEInput or AEOutput) - Device on which the event occurred
Raises:
  • IOError - When the monitor is no longer accepting data to buffer