From adc1f27ba2d330c760703a00ee12f82ddd216350 Mon Sep 17 00:00:00 2001 From: Sharad Soni Date: Tue, 23 Apr 2019 00:07:35 +0530 Subject: Adding support for proper CRLF Window's Notepad doesn't recognize `\n` linebreak it has to be `\r\n` --- system/core/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/core/Log.php') diff --git a/system/core/Log.php b/system/core/Log.php index d651e8abe..3f7fc783f 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -249,11 +249,11 @@ class CI_Log { * @param string $level The error level * @param string $date Formatted date string * @param string $message The log message - * @return string Formatted log line with a new line character '\n' at the end + * @return string Formatted log line with a new line character '\r\n' at the end */ protected function _format_line($level, $date, $message) { - return $level.' - '.$date.' --> '.$message."\n"; + return $level.' - '.$date.' --> '.$message."\r\n"; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b