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') 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 From 1c35505d92fd502b6fbfbbdf6f7a462ad92c6273 Mon Sep 17 00:00:00 2001 From: Sharad Soni Date: Wed, 24 Apr 2019 02:35:24 +0530 Subject: Update Log.php Changed to use PHP_EOL instead of '/r/n' --- system/core/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/core/Log.php b/system/core/Log.php index 3f7fc783f..cfc0f36a2 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -253,7 +253,7 @@ class CI_Log { */ protected function _format_line($level, $date, $message) { - return $level.' - '.$date.' --> '.$message."\r\n"; + return $level.' - '.$date.' --> '.$message. PHP_EOL; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From b5e4b30ff267fe03273c859ba110cca0d8e72dac Mon Sep 17 00:00:00 2001 From: Sharad Soni Date: Wed, 24 Apr 2019 14:06:33 +0530 Subject: Update Log.php Removed extra space. --- system/core/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/core/Log.php b/system/core/Log.php index cfc0f36a2..3c9a89a5f 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -253,7 +253,7 @@ class CI_Log { */ protected function _format_line($level, $date, $message) { - return $level.' - '.$date.' --> '.$message. PHP_EOL; + return $level.' - '.$date.' --> '.$message.PHP_EOL; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From ab658b3ae8799915f3b6ab1cd71a3d4932ffd9d5 Mon Sep 17 00:00:00 2001 From: Sharad Soni Date: Wed, 8 May 2019 00:26:19 +0530 Subject: Update Log.php Removed \n as now we are adding PHP_EOL --- system/core/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/core/Log.php b/system/core/Log.php index 3c9a89a5f..fde0bebf2 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -249,7 +249,7 @@ 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 '\r\n' at the end + * @return string Formatted log line with a new line character at the end */ protected function _format_line($level, $date, $message) { -- cgit v1.2.3-24-g4f1b