| | 1 | = !WindowsLoggerListener = |
| | 2 | |
| | 3 | 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"). |
| | 4 | |
| | 5 | The Activity Logger produces a text logfile as output. |
| | 6 | 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. |
| | 7 | |
| | 8 | The Activity Logger always appends to the text logfile. |
| | 9 | Therefore, the !WindowsLoggerListener remembers the last line read in and continues with the following line. |
| | 10 | This information is kept in another small text file just holding the last line number as string. |
| | 11 | |
| | 12 | == Property file == |
| | 13 | |
| | 14 | The !WindowsLoggerListener expects to find a property file at this location: |
| | 15 | {{{ |
| | 16 | etc/userobservationhub.properties (relative to the UserObservationHub project folder) |
| | 17 | }}} |
| | 18 | If this file does not yet exist, please create one, e.g. via Create new -> Textfile. |
| | 19 | |
| | 20 | The property file should contain the following: |
| | 21 | {{{ |
| | 22 | lastLogLineReadFile=C:/workspace/UserObservationHub/etc/lastLogLineRead.txt |
| | 23 | windows_log_file=C:/Programme/User Activity Logger/t_log.txt |
| | 24 | }}} |
| | 25 | 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. |
| | 26 | The second line must specify the location of the installed "User Activity Logger" tool. |