prepends newline to array in logger