summaryrefslogtreecommitdiffstats
path: root/system/libraries/Log.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-15 22:43:32 +0200
committeradmin <devnull@localhost>2006-09-15 22:43:32 +0200
commit633ec3758910482863299c7122dda3c15d9758a8 (patch)
treeec086d3834be2c2d47756592c90fbb1e3b941d19 /system/libraries/Log.php
parent71430b4c30f01c861abe379becc670748e3b4a19 (diff)
Diffstat (limited to 'system/libraries/Log.php')
-rw-r--r--system/libraries/Log.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/system/libraries/Log.php b/system/libraries/Log.php
index 6c78316f1..392742584 100644
--- a/system/libraries/Log.php
+++ b/system/libraries/Log.php
@@ -40,23 +40,25 @@ class CI_Log {
* @param string the error threshold
* @param string the date formatting codes
*/
- function CI_Log($path = '', $threshold = 4, $date_fmt = '')
- {
- $this->log_path = ($path != '') ? $path : BASEPATH.'logs/';
+ function CI_Log()
+ {
+ $config =& _get_config();
+
+ $this->log_path = ($config['log_path'] != '') ? $config['log_path'] : BASEPATH.'logs/';
if ( ! is_dir($this->log_path) OR ! is_writable($this->log_path))
{
$this->_enabled = FALSE;
}
- if (is_numeric($threshold))
+ if (is_numeric($config['log_threshold']))
{
- $this->_threshold = $threshold;
+ $this->_threshold = $config['log_threshold'];
}
- if ($date_fmt != '')
+ if ($config['log_date_format'] != '')
{
- $this->_date_fmt = $date_fmt;
+ $this->_date_fmt = $config['log_date_format'];
}
}
// END CI_Log()