def log_middleware(store):
    """log all actions to console as they are dispatched"""
    def wrapper(next_):
        def log_dispatch(action):
            print('Dispatch Action:', action)
            return next_(action)
        return log_dispatch
    return wrapper
def log_middleware ( store ) : def wrapper ( next_ ) : def log_dispatch ( action ) : print ( 'Dispatch Action:' , action ) return next_ ( action ) return log_dispatch return wrapper
log all actions to console as they are dispatched