[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