def METHOD_NAME(level=INFO, filename=None, stream=None, format=None, style="%"):
    root.setLevel(level)
    if filename:
        h = FileHandler(filename)
    else:
        h = StreamHandler(stream)
    h.setFormatter(Formatter(format or "%(levelname)s:%(name)s:%(message)s", style=style))
    root.handlers.clear()
    root.addHandler(h)