Use ONE Logfile instead of daily ones

This commit is contained in:
int2001
2024-01-24 06:42:58 +00:00
parent d1b438da66
commit 166b8bf98d

View File

@@ -184,7 +184,9 @@ class CI_Log {
return FALSE;
}
$filepath = $this->_log_path.'log-'.date('Y-m-d').'.'.$this->_file_ext;
# Changed to ONE File (you could use Logrotate) instead of daily files # $filepath = $this->_log_path.'log-'.date('Y-m-d').'.'.$this->_file_ext;
$config =& get_config();
$filepath = $this->_log_path.'log-'.str_replace(array("http://","https://","/"),"",$config['base_url']).'.'.$this->_file_ext;
$message = '';
if ( ! file_exists($filepath))