Put output in log