log and pipe