diff options
author | Chris Passas <cpassas@gmail.com> | 2013-02-13 20:16:18 +0100 |
---|---|---|
committer | Chris Passas <cpassas@gmail.com> | 2013-02-13 20:16:18 +0100 |
commit | 0bd6b28045c9b9a820e580b3f651f474b60348a3 (patch) | |
tree | bad9b41faf9dab741cfba811a1c99fd53fbd480b /system/core/Log.php | |
parent | aae91a45e27cb11e09b22bf9be04a7da9f6ff20b (diff) |
Added support for changing the default log file extension from .php to whatever is preferred. example (.log)
This is a follow up to this pull request.
https://github.com/EllisLab/CodeIgniter/pull/2243
Diffstat (limited to 'system/core/Log.php')
-rw-r--r-- | system/core/Log.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/core/Log.php b/system/core/Log.php index 3b0a9213d..7572d2ac6 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -104,6 +104,8 @@ class CI_Log { $this->_log_path = ($config['log_path'] !== '') ? $config['log_path'] : APPPATH.'logs/'; + $this->_log_ext = ($config['log_file_extension'] !== '') ? $config['log_file_extension'] : $this->_log_ext; + file_exists($this->_log_path) OR mkdir($this->_log_path, DIR_WRITE_MODE, TRUE); if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path)) |