Logging an action to the right place.