syslog-ng

Python logging.DEBUG level doesn't logging

Python logging.DEBUG level doesn't logging Question: I have a problem with python’s logging lib. With the code below I create a “logger”: logger = logging.getLogger() def logger_init(level): try: syslog = SysLogHandler(address=LOG_DESTINATION) except Exception, ex: return formatter = logging.Formatter(‘%(module)s[%(process)d]: %(message)s’) syslog.setFormatter(formatter) syslog.setLevel(level) logger.addHandler(syslog) And I call it like: logger.debug(SOME_STR_TO_BE_LOGGED) OR like: logger.error(SOME_STR_TO_BE_LOGGED) And I initialize the …

Total answers: 1