Welcome Guest, Not a member yet? Register   Sign In
Log/Logging to different files
#2

[eluser]Unknown[/eluser]
Hi,

I was trying to tweak this to pass additional parameters to log.
Code:
function log_message($level = 'error', $message, $php_error = FALSE, $arguments = array())
{
  static $_log;

  if (config_item('log_threshold') == 0)
  {
   return;
  }

  $_log =& load_class('Log');
  $_log->write_log($level, $message, $php_error, $arguments);
}

This doesn't work. I tried printing $arguments and I always get empty array (Even if I'm passing the argument). What is the role of
Code:
[b] and [\b]
in your example?


Messages In This Thread
Log/Logging to different files - by El Forum - 12-31-2009, 12:11 PM
Log/Logging to different files - by El Forum - 06-06-2013, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB