printing results and logs