So basically, the below is the code I have right now:
class MY_Log extends CI_Log {
/**
* Variable storing the CodeIgniter instance.
*
* @access private
* @since v0.1.0.0
*/
private $CI;
/**
* Constructor for later use by internal
* methods.
*
* @access public
* @since v0.1.0.0
*/
public function __construct()
{
// Extend the parent logging.
parent::__construct();
$this->$CI =& get_instance();
}
}
And I get the following error;
Fatal error: Class 'CI_Controller' not found in /<deleted>/system/core/CodeIgniter.php on line 233
This is kinda how the user guide describes it.