Changeset 752 for ZMS/trunk/_globals.py


Ignore:
Timestamp:
26.10.2009 17:53:28 (3 years ago)
Author:
chris
Message:

zms-2.11.4-02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_globals.py

    r627 r752  
    540540################################################################################ 
    541541# 
    542 Traces 
     542Logging 
    543543# 
    544544################################################################################ 
    545545""" 
     546 
     547LOG = logging.getLogger("ZMS") 
    546548 
    547549# ------------------------------------------------------------------------------ 
     
    565567def writeLog(self, info): 
    566568  try: 
     569    LOG.debug(info) 
    567570    zms_log = getattr( self, 'zms_log', None) 
    568571    if 'DEBUG' in zms_log.logged_entries: 
     
    578581def writeBlock(self, info): 
    579582  try: 
     583    LOG.info(info) 
    580584    zms_log = getattr( self, 'zms_log', None) 
    581585    if 'INFO' in zms_log.logged_entries: 
     
    592596  info = '?' 
    593597  try: 
     598    LOG.error(info) 
    594599    t,v,tb = sys.exc_info() 
    595600    v = str(v) 
Note: See TracChangeset for help on using the changeset viewer.