'Constructor'

def __init__(self):

    settings = current.deployment_settings
    log_level = settings.get_log_level()
    if (log_level is None):
        self.critical = self.error = self.warning = self.info = self.debug = self.ignore
        self.log_level = 100
    else:
        try:
            level = getattr(logging, log_level.upper())
        except AttributeError:
            raise SyntaxError(('Invalid    settings.log.level:    %s' % log_level))
        self.log_level = level
        self.critical = (self._critical if (level <= logging.CRITICAL) else self.ignore)
        self.error = (self._error if (level <= logging.ERROR) else self.ignore)
        self.warning = (self._warning if (level <= logging.WARNING) else self.ignore)
        self.info = (self._info if (level <= logging.INFO) else self.ignore)
        self.debug = (self._debug if (level <= logging.DEBUG) else self.ignore)
    self.configure_logger()
