'Set level of logger and handlers.
The logger need the lowest level (see link above)'

def setLevel(self, level):

    if (not isinstance(level, int)):
        level = getattr(logging, level, None)
        if ((not level) or (not isinstance(level, int))):
            raise TypeError('log    level    must    be    an    integer')
    self.level = min(level, logging.INFO)
    for handler in self.handlers:
        if isinstance(handler, BrokHandler):
            continue
        handler.setLevel(level)
