if allow:
    record.msg = 'changed: ' + record.msg
return allow
LOGGING = {'version': 1, 'filters': {'myfilter': {'()': MyFilter, 'param':
    'noshow'}}, 'handlers': {'console': {'class': 'logging.StreamHandler',
    'filters': ['myfilter']}}, 'root': {'level': 'DEBUG', 'handlers': [
    'console']}}
if __name__ == '__main__':
    print(sys.version)
logging.config.dictConfig(LOGGING)
logging.debug('hello')
logging.debug('hello - noshow')
install filter on logging level in python using dictConfig