pipe output to log