Index: trunk/src/python/unifiedlogger/logging_service.py
===================================================================
--- trunk/src/python/unifiedlogger/logging_service.py	(revision 683)
+++ trunk/src/python/unifiedlogger/logging_service.py	(revision 687)
@@ -12,7 +12,7 @@
     
 # Load the sim time file and extract the seconds */
-def getSimTime():
+def getSimTime(path):
     global seconds    
-    with open ("webapps/dynamicdata/sim_elapsedtime.json", 'r') as myfile:
+    with open (path+"sim_elapsedtime.json", 'r') as myfile:
         jsonData=myfile.read()
     try:     
@@ -37,5 +37,5 @@
     config.read(configdir + '/logging_service.cfg')
     logfilepath  = config.get('Paths', 'UnifiedLogPath')
-    
+
     # Delete any previously existing output file
     f = open(logfilepath + outputFilename, "w")
@@ -49,5 +49,5 @@
         setupfunc = getattr(plugmodule, 'setup')
         #Call setup
-        setupfunc()
+        setupfunc(configdir)
     #END LOOP
     
@@ -55,5 +55,5 @@
     while True:
     #    Get simulation time
-        timeStamp = getSimTime()
+        timeStamp = getSimTime(logfilepath)
     #    Reset Output Buffer
         output = ""
@@ -66,5 +66,5 @@
             
     #        Run the plugin process returning new log entries
-            results = getfunc()     
+            results = getfunc()
     #       Append simulation time and the log entries to the Output Buffer
             for item in results:
@@ -87,5 +87,5 @@
 #END DO
 
-# for unit testing
+# Entry point for application
 if __name__ == '__main__':
     startup(sys.argv)
