- Timestamp:
- Jan 31, 2013, 4:13:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/jython/pslogger.py
r33349 r35076 11 11 This will default to stout and no file output 12 12 ''' 13 def setup(self, programName, basePath, configName, host, pid, stdout=1, sendToFile=0):13 def setup(self, programName, basePath, skychunkName, host, pid, stdout=1, sendToFile=0): 14 14 15 15 formatter = logging.Formatter('%(asctime)s | %(levelname)7s | %(message)s', '%Y-%m-%d %H:%M:%S') … … 21 21 PATH = basePath + "/log" 22 22 if not os.path.exists(PATH): os.makedirs(PATH) 23 FULLPATH = PATH + "/" + programName + "_" + configName + "_" + host + "_" + str(pid) + ".log"23 FULLPATH = PATH + "/" + programName + "_" + skychunkName + "_" + host + "_" + str(pid) + ".log" 24 24 # opens file to be appended 25 25 hdlr = logging.FileHandler(FULLPATH, "a")
Note:
See TracChangeset
for help on using the changeset viewer.
