Welcome Guest, Not a member yet? Register   Sign In
Error loging class
#1

[eluser]ELRafael[/eluser]
My contrib for this class

./system/libraries/Log.php (L:102)
Code:
//$message .= $level.' '.(($level == 'INFO') ? ' -' : '-').' '.date($this->_date_fmt). ' --> '.$msg."\n";
$message .= $level.' - '.gmdate($this->_date_fmt). ' --> '.$msg."\n";

Why?
Our server is in America but our visitors are in Portugal, so I need to write logs using gmdate.
The other thing is just to remove an unnecessary if
Code:
if ( $level == 'INFO' )
  echo ' -';
else
  echo '-';
//Just because a space between "-" and the message?

Regards


Messages In This Thread
Error loging class - by El Forum - 06-02-2010, 05:45 AM
Error loging class - by El Forum - 06-02-2010, 05:53 AM
Error loging class - by El Forum - 06-02-2010, 06:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB