Add newline when writing logs to stdout (#7418)
Add newline on the end of the line when printing to stdout.