diff options
author | Sai Phaninder Reddy Jonnala <sai.jonnala@gopassport.com> | 2016-01-15 16:25:53 +0100 |
---|---|---|
committer | Sai Phaninder Reddy Jonnala <sai.jonnala@gopassport.com> | 2016-01-15 16:25:53 +0100 |
commit | 009ce6c4b68375f77bc8864528602824d6c603ba (patch) | |
tree | 1b189f31a1b12c44aadad219c63b83a4216b6369 /system | |
parent | 3ac1fd1af92a1d45f9624fff99f5e0692c59d7c6 (diff) |
Code styling changes as suggested by narfbg
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Log.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/system/core/Log.php b/system/core/Log.php index 0e1f7e2ac..f338a36ec 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -154,8 +154,8 @@ class CI_Log { * * Generally this function will be called using the global log_message() function * - * @param string the error level: 'error', 'debug' or 'info' - * @param string the error message + * @param string $level The error level: 'error', 'debug' or 'info' + * @param string $msg The error message * @return bool */ public function write_log($level, $msg) @@ -204,7 +204,7 @@ class CI_Log { $date = date($this->_date_fmt); } - $message .= $this->_format_log_line($level, $date, $msg); + $message .= $this->_format_line($level, $date, $msg); flock($fp, LOCK_EX); @@ -227,6 +227,8 @@ class CI_Log { return is_int($result); } + // -------------------------------------------------------------------- + /** * Format the log line. * @@ -234,13 +236,13 @@ class CI_Log { * If you want to change the log format, * extend the CI_Log class and override this method. * - * @param string the error level: 'error', 'debug' or 'info' - * @param string formatted date string - * @param string the log message + * @param string $level The error level + * @param string $date Formatted date string + * @param string $msg The log message * @return string formatted log line with a new line character '\n' at the end. */ - protected function _format_log_line($level, $date, $msg) + protected function _format_line($level, $date, $message) { - return $level.' - '.$date.' --> '.$msg."\n"; + return $level.' - '.$date.' --> '.$message."\n"; } } |