def log_middleware(store):
def wrapper(next_):<EOL><INDENT>def log_dispatch(action):<EOL><INDENT>print('<STR_LIT>', action)<EOL>return next_(action)<EOL><DEDENT>return log_dispatch<EOL><DEDENT>return wrapper<EOL>
log all actions to console as they are dispatched