added logoutput param