summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorSharad Soni <sharadrsoni@gmail.com>2019-04-22 20:37:35 +0200
committerGitHub <noreply@github.com>2019-04-22 20:37:35 +0200
commitadc1f27ba2d330c760703a00ee12f82ddd216350 (patch)
treebd5bcf80ec1955ef05f8003e4fa250126c61b579 /system/core
parentdb71b8f4f815e34d7d84fbff884c8f9ab267464b (diff)
Adding support for proper CRLF
Window's Notepad doesn't recognize `\n` linebreak it has to be `\r\n`
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Log.php4
1 files changed, 2 insertions, 2 deletions
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";
}
// --------------------------------------------------------------------