IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2011, 3:24:21 PM (15 years ago)
Author:
rhenders
Message:

now accepts host and PID arguments into the constructor for use when naming log files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/pslogger.py

    r32107 r32464  
    99   Sets up logging using values from the ippToPsps config file
    1010   '''
    11    def setup(self, doc, name, stdout=1, sendToFile=0):
     11   def setup(self, doc, name, stdout=1, sendToFile=0, host="host", pid=1234):
    1212
    1313       formatter = logging.Formatter('%(asctime)s | %(levelname)7s | %(message)s', '%Y-%m-%d %H:%M:%S')
     
    1818           if not os.path.exists(PATH): os.makedirs(PATH)
    1919           DVOLABEL = doc.find("dvo/gpc1Label").text
    20            FULLPATH = PATH + "/" + name + "_" + DVOLABEL + ".log"
     20           FULLPATH = PATH + "/" + name + "_" + DVOLABEL + "_" + host + "_" + str(pid) + ".log"
    2121
    2222           # opens file to be appended
Note: See TracChangeset for help on using the changeset viewer.