Changeset 38973 for trunk/ippToPsps/jython/pslogger.py
- Timestamp:
- Oct 27, 2015, 2:38:19 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/pslogger.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/pslogger.py
r35417 r38973 11 11 This will default to stout and no file output 12 12 ''' 13 def setup(self, programName, basePath, skychunkName, host, pid, stdout=1, sendToFile=0):13 def setup(self, programName, basePath, skychunkName, host, pid, loggerLevel, stdout=1, sendToFile=0): 14 14 15 15 formatter = logging.Formatter('%(asctime)s.%(msecs)03d | %(levelname)7s | %(message)s', '%Y-%m-%d %H:%M:%S') 16 self.setLevel(logg ing.INFO)16 self.setLevel(loggerLevel) 17 17 18 18 if sendToFile: … … 34 34 if sendToFile: print "Writing log to: " + FULLPATH 35 35 36 def debugPair(self, first, second): 37 self.debug("%-40s%s" % (first, second)) 38 36 39 def infoPair(self, first, second): 37 40 self.info("%-40s%s" % (first, second)) 38 41 42 def warningPair(self, first, second): 43 self.warning("%-40s%s" % (first, second)) 44 39 45 def errorPair(self, first, second): 40 46 self.error("%-40s%s" % (first, second)) 41 42 def debugPair(self, first, second):43 self.debug("%-40s%s" % (first, second))44 47 45 48 def infoTitle(self, str):
Note:
See TracChangeset
for help on using the changeset viewer.
