Ticket #252 (closed task: done)

Opened 5 years ago

Last modified 5 years ago

LCS should record user actions to unified log

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

Description

Certain actions the user takes in LCS should be recorded to the unified log:

Status Updates - details of the update

New closure request - Username, closureID, route, dir, type of closure, type of work

Change History

comment:1 Changed 5 years ago by jdalbey

Implemented in r634. Currently the log file is "samplelog.txt" in web2py root, and sim time is "sim_elapsedtime.json" in web2py root. There are two string constants at the start of default.py that define these filenames that need to be changed to the production filenames/directories.

Implemented a fallback if simtime file is not found - just use current clock time.

comment:2 Changed 5 years ago by jdalbey

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

Fixed formatting of log message in r636. It now assumes the simulation time won't > 9 hours and prepends a zero so the hours is 2 digits like all the other log messages (CAD Details, etc.).

Note: See TracTickets for help on using tickets.