summaryrefslogtreecommitdiffstats
path: root/system/core/Log.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-05-10 19:04:57 +0200
committerAndrey Andreev <narf@devilix.net>2019-05-10 19:05:34 +0200
commitb0f43e29e43228366390de7e0aa80d2134d1f224 (patch)
treedb0b08d0ae80da94a0c1f6ab3352180d807b8f8c /system/core/Log.php
parente6dc433586c648f4a9ebb8603e7b847d1d4f3f70 (diff)
Merge pull request #5744 from sharadrsoni/patch-1
Adding support for proper CRLF
Diffstat (limited to 'system/core/Log.php')
-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 4338aa939..f37726e02 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -247,11 +247,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 at the end
*/
protected function _format_line($level, $date, $message)
{
- return $level.' - '.$date.' --> '.$message."\n";
+ return $level.' - '.$date.' --> '.$message.PHP_EOL;
}
// --------------------------------------------------------------------