Changeset 683 in tmcsimulator for trunk/src/python/unifiedlogger/logging_service.py
- Timestamp:
- 09/28/2022 10:58:59 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/python/unifiedlogger/logging_service.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/logging_service.py
r649 r683 1 import cms_watcher, har_watcher, cad_watcher, activitylog_watcher, time, json, ConfigParser1 import sys, cms_watcher, har_watcher, cad_watcher, activitylog_watcher, time, json, ConfigParser 2 2 # Unified Logging Service 3 3 # jdalbey 7/6/2019 … … 24 24 return toHMS(seconds) 25 25 26 def startup(): 26 # Entry point 27 # @param list of command line arguments 28 # can provide name of config directory to use 29 def startup(args): 30 configdir = "config" # default dir for production 31 # See if a config dir was given on command line 32 if len(args) == 2: 33 configdir = args[1] 34 27 35 # get path to output file from configuration 28 36 config = ConfigParser.ConfigParser() 29 config.read( 'config/logging_service.cfg')37 config.read(configdir + '/logging_service.cfg') 30 38 logfilepath = config.get('Paths', 'UnifiedLogPath') 31 39 … … 79 87 #END DO 80 88 89 # for unit testing 81 90 if __name__ == '__main__': 82 startup( )91 startup(sys.argv)
Note: See TracChangeset
for help on using the changeset viewer.
