wiki:WindowsLoggerListener

Version 2 (modified by Sven, 16 years ago) (diff)

--

WindowsLoggerListener

The WindowsLoggerListener is a module inside the UserObservationHub (UOH) that reads in, processes, distributes the output of the "User Activity Logger" (application window events like "ActivateWindow").

The Activity Logger produces a text logfile as output. The WindowsLoggerListener reads in this textfile line by line (each line holds data for one specific window focus action) and creates corresponding NOPs - which are then distributed them to all user observation listeners.

The Activity Logger always appends to the text logfile. Therefore, the WindowsLoggerListener remembers the last line read in and continues with the following line. This information is kept in another small text file just holding the last line number as string.

Property file

The WindowsLoggerListener expects to find a property file at this location:

    etc/userobservationhub.properties    (relative to the UserObservationHub project folder)

If this file does not yet exist, please create one, e.g. via Create new -> Textfile.

The property file should contain the following:

lastLogLineReadFile=C:\\Programme\\User Activity Logger\\lastLogLineRead.txt
windows_log_file=C:\\Programme\\User Activity Logger\\t_log.txt

You can leave out the first line, but it's a good idea to override the default value here, because then you know where to check for the correct file or the correct line number in that file. The second line must specify the location of the installed "User Activity Logger" tool.