summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Log.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/system/core/Log.php b/system/core/Log.php
index f5d091e14..3b0a9213d 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -71,6 +71,13 @@ class CI_Log {
* @var string
*/
protected $_date_fmt = 'Y-m-d H:i:s';
+
+ /**
+ * Log file extension
+ *
+ * @var string
+ */
+ protected $_log_ext = 'php';
/**
* Whether or not the logger can write to the log files
@@ -147,7 +154,7 @@ class CI_Log {
return FALSE;
}
- $filepath = $this->_log_path.'log-'.date('Y-m-d').'.php';
+ $filepath = $this->_log_path.'log-'.date('Y-m-d').'.'.$this->_log_ext;
$message = '';
if ( ! file_exists($filepath))
@@ -179,4 +186,4 @@ class CI_Log {
}
/* End of file Log.php */
-/* Location: ./system/core/Log.php */ \ No newline at end of file
+/* Location: ./system/core/Log.php */