def log_configure():
 cfg = {'version': 1, 'filters': {}, 'formatters': dict(prod=formatters['prod']), 'handlers': dict(syslog=handlers['syslog']), 'loggers': {'z': {'handlers': ['syslog'], 'level': logging.INFO}}, 'root': {}, 'disable_existing_loggers': False}
 logging.config.dictConfig(cfg)

def log_configure ( ) : cfg = { 'version' : 1 , 'filters' : { } , 'formatters' : dict ( prod = formatters [ 'prod' ] ) , 'handlers' : dict ( syslog = handlers [ 'syslog' ] ) , 'loggers' : { 'z' : { 'handlers' : [ 'syslog' ] , 'level' : logging . INFO } } , 'root' : { } , 'disable_existing_loggers' : False } logging . config . dictConfig ( cfg )
you have to call this to explicitly configure logging .