Changeset 479 in tmcsimulator for trunk/src/python/unifiedlogger/activitylog_watcher.py
- Timestamp:
- 08/23/2019 02:21:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/activitylog_watcher.py
r478 r479 1 1 import json, time, ConfigParser 2 from copy import deepcopy2 #from copy import deepcopy 3 3 4 4 # Incident Activity log Watcher … … 24 24 config = ConfigParser.ConfigParser() 25 25 config.read('config/logging_service.cfg') 26 logfilepath = config.get('Paths', 'UnifiedLogPath') 26 logfilepath = config.get('Paths', 'ActivityLogPath') 27 logfilename = "data.json" #"IncidentActivity.log" 28 lines = [] 27 29 28 lines = []29 30 try: 30 json_file = open (logfilepath + "IncidentActivity.log",'r')31 json_file = open (logfilepath + logfilename,'r') 31 32 except IOError: 32 print "Error: missing "+logfilepath+ "IncidentActivity.logfile."33 print "Error: missing "+logfilepath+logfilename+" file." 33 34 else: 34 35 jsonData=json_file.read()
Note: See TracChangeset
for help on using the changeset viewer.
