Index: trunk/src/python/unifiedlogger/__main__.py
===================================================================
--- trunk/src/python/unifiedlogger/__main__.py	(revision 645)
+++ trunk/src/python/unifiedlogger/__main__.py	(revision 683)
@@ -1,3 +1,3 @@
-import logging_service, os, ConfigParser
+import logging_service, os, sys, ConfigParser
 # This main module is provided so the application can be conveniently bundled for deployment
 def main():
@@ -10,5 +10,5 @@
         revNum = "?"
     print "Unified Logging Service v"+revNum,"starting from ",os.getcwd()
-    logging_service.startup()
+    logging_service.startup(sys.argv)
 
 if __name__ == '__main__':
Index: trunk/src/python/unifiedlogger/logging_service.py
===================================================================
--- trunk/src/python/unifiedlogger/logging_service.py	(revision 649)
+++ trunk/src/python/unifiedlogger/logging_service.py	(revision 683)
@@ -1,3 +1,3 @@
-import cms_watcher, har_watcher, cad_watcher, activitylog_watcher, time, json, ConfigParser
+import sys, cms_watcher, har_watcher, cad_watcher, activitylog_watcher, time, json, ConfigParser
 # Unified Logging Service
 # jdalbey 7/6/2019
@@ -24,8 +24,16 @@
     return toHMS(seconds)
 
-def startup():
+# Entry point
+# @param list of command line arguments
+#        can provide name of config directory to use
+def startup(args):
+    configdir = "config"  # default dir for production
+    # See if a config dir was given on command line
+    if len(args) == 2:
+        configdir = args[1]
+
     # get path to output file from configuration
     config = ConfigParser.ConfigParser()
-    config.read('config/logging_service.cfg')
+    config.read(configdir + '/logging_service.cfg')
     logfilepath  = config.get('Paths', 'UnifiedLogPath')
     
@@ -79,4 +87,5 @@
 #END DO
 
+# for unit testing
 if __name__ == '__main__':
-    startup()
+    startup(sys.argv)
