adding logs to output