Codeigniter query times and custom file logging
Well, I figure it out. I've set a hook just like this:
//config/hooks.php$hook['display_override'][] = array( 'class' => '', 'function' => 'log_queries', 'filename' => 'log_queries.php', 'filepath' => 'hooks');//hooks/log_queries.phpfunction log_queries() { $CI =& get_instance(); $times = $CI->db->query_times; foreach ($CI->db->queries as $key=>$query) { log_message('debug', "Query: ".$query." | ".$times[$key]); }}
I hope it helps someone!
Can't help with the CodeIgniter side of things, but regarding logging, log4php is good:http://logging.apache.org/log4php/