Ticket #189 (closed enhancement: fixed)

Opened 7 years ago

Last modified 6 years ago

Add simulation start and pause messages to unified log; auto reset log files

Reported by: jdalbey Owned by: jdalbey
Priority: Medium Milestone: May 2021 Training
Component: Unified Logger Version:
Severity: Minor Keywords:
Cc:

Description

When "Start" is clicked in the Sim Mgr add an entry to the unified log similar to this:

Simulation started at 03 Mar 2020 09:02AM with incidents 181, 182, 185.

When "Pause" is clicked, add an entry

Simulation paused at 35:05.

When the Sim Mgr starts the default behavior should be to reset the unified log files. Add a checkbox to the UI if the user wants to retain the existing files.

Change History

comment:1 Changed 6 years ago by jdalbey

Test case 1

Clear CADcomments.log. Start Server. Start Sim Mgr with full script. Click "Start". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191

Click "Pause". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191 
CAD log, Simulation Paused.

Click "Resume". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191 
CAD log, Simulation Paused.
CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191

comment:2 Changed 6 years ago by jdalbey

Test case 2

Clear CADcomments.log. Start Server. Start Sim Mgr with full script. Click "Start". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191

Start CAD Client. Login as user "A". Open incident 187. Enter comment "Hello world". Click "Exit/Send". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191 
CAD log, Incident #187, A: HELLO WORLD

Click "Pause". CADcomments.log should contain

CAD log, Simulation Started,  loaded incidents 100 187 188 189 190 191 
CAD log, Incident #187, A: HELLO WORLD
CAD log, Simulation Paused.

comment:3 Changed 6 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to done

Completed the enhancement that updates the unified log.  Committed in r524.

Moving "auto reset" to a separate ticket.

comment:4 Changed 6 years ago by jdalbey

  • Status changed from closed to reopened
  • Resolution done deleted

comment:5 Changed 6 years ago by jdalbey

Add the date and time to the content of the "Simulation Started message". Use

SimpleDateFormat("d MMM yyyy HH:mm:ss")

comment:6 Changed 6 years ago by jdalbey

Fixed in r529. Sample output in CADcomments.log:

CAD log, Simulation Started at 19 Nov 2019 20:33:10 with incidents 100 187 188 189 190 191

comment:7 Changed 6 years ago by jdalbey

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.