Different levels of logging in python,logger.setLevel(logging.DEBUG)