6 loglevel = logging.INFO
 
   24         if level >= logging.CRITICAL:  
return cls.
CRITICALCRITICAL
 
   25         elif level >= logging.ERROR:   
return cls.
ERRORERROR
 
   26         elif level >= logging.WARNING: 
return cls.
WARNINGWARNING
 
   27         elif level >= logging.INFO:    
return cls.
INFOINFO
 
   28         elif level >= logging.DEBUG:   
return cls.
DEBUGDEBUG
 
   32         logging.StreamHandler.__init__(self, stream)
 
   35         text = logging.StreamHandler.format(self, record)
 
   37         return color + text + self.
DEFAULTDEFAULT
 
   43         if record.levelno 
in (logging.ERROR, logging.CRITICAL):
 
   49     format=
'%(asctime)s [%(levelname)s] : %(name)s : %(message)s',
 
   50     datefmt=
'%Y-%m-%d_%H:%M:%S',
 
def _get_color(cls, level)
 
def __init__(self, stream=None)