Allowing setting of log location for debugging

Sometimes user may wish to not have all outputs route to `/dev/null` for debugging purpose. 

This PR allows user to do that.