ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/CrabLogger.py
(Generate patch)

Comparing COMP/CRAB/python/CrabLogger.py (file contents):
Revision 1.1 by slacapra, Tue Jun 9 13:12:40 2009 UTC vs.
Revision 1.2 by slacapra, Thu Sep 24 18:03:15 2009 UTC

# Line 1 | Line 1
1 < import logging,time
1 > import logging,time,sys
2   import common
3  
4   class CrabLogger:
# Line 27 | Line 27 | class CrabLogger:
27          for x in self.logger.handlers:
28              if x.__class__==logging.StreamHandler: streamenPresent=True
29          if not streamenPresent:
30 <            self.ch=logging.StreamHandler()
30 >            self.ch=logging.StreamHandler(sys.stdout)
31              ch_formatter = logging.Formatter("%(name)s  %(message)s")
32              ch_level=logging.INFO
33              if common.debugLevel > 0:ch_level=logging.DEBUG

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines