how can i put all eror in same log file

#1
[eluser]Zeeshan Rasool[/eluser]
Hi, guys there is a little prob. Here , i have a code that generates error log file

Code:
$dbRet=$this->db->insert('hfelp_video');
             if (!$dbRet) {
             $errNo   = $this->db->_error_number();
                $errMess = $this->db->_error_message();

            log_message("error", "Problem Inserting to".$errMess." (".$errNo.")");

but, it generates new file daily with current date file name i-e

log-2008-06-30.php , log-2008-07-01.php etc

how can i put all eror in same log file

thnx in adv.

#2
[eluser]Zeeshan Rasool[/eluser]
change log.php

Code:
$filepath = $this->log_path.'log-'.Date(Y'M'D,).EXT;  to
    
$filepath = $this->log_path.'Errorlog'.EXT;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.