Changes between Version 1 and Version 2 of UnifiedLogger


Ignore:
Timestamp:
07/12/2019 08:13:18 AM (7 years ago)
Author:
jdalbey
Comment:

draft

Legend:

Unmodified
Added
Removed
Modified
  • UnifiedLogger

    v1 v2  
    1515The output is a CSV file, unifiedlog.csv, which merges all the previous logs and orders them by simulation time. 
    1616 
    17 A separate web app, unifiedlogmonitor.html, runs in a web browser to display a nicely formatted version of the CSV file. 
     17A separate web app, `unifiedlogmonitor.html`, runs in a web browser to display a nicely formatted version of the CSV file. 
    1818 
    1919=== Configuration === 
     
    3939 
    4040The application will echo logs to the console for diagnostic purposes.The expected output file is `unifiedlog_expected.csv` (attached). 
     41 
     42While the application is running you may append further entries to either data file, save it, and observe the output csv file is updated with the new entry. 
     43 
     44''(TBD: explain time interval.)'' 
     45 
     46Open `webapps/unifiedlogmonitor.html` in a web browser and observe the csv file listed in reverse chronological order, formatted like this: 
     47 
     48{{{ 
     49example 
     50}}} 
     51=== Usage === 
     52Start the CAD server and Simulation Manager.  Load the practice script and start it running.  Start a CAD client. In a browser, start CPTMS.  In a browser, start `unifiedlogmonitor.html`. 
     53 
     54Wait for an incident to appear in the CAD client.  Open the incident viewer and in the upper comments field, enter a note "hello world" and press Exit/Send.Wait ten seconds and observe an entry for CAD Log appear in the monitor.   
     55 
     56In CPTMS, display the CMS layer, open a CMS dialog and enter a message "SLOW TRAFFIC".  Click "Send" and wait ten seconds.  Observe an entry for CMS Activated to appear in the monitor.   Update the CMS message results in a "CMS Updated" entry in the unified log.  Clearing a CMS message results in a "CMS Deactivated" entry in the unified log. 
     57 
     58=== Running as a background service === 
     59''TBD: Explain how to start the service as a unix daemon.  Explain start, stop, restart.  Explain which files are reset, etc.''