Fixed logging (\n was not appended to each string)