Allow passing logoutput as an option
Support logoutput option