check if log is provided