You can override the log library with your own log class, especially override function write_log($level = 'error', $msg, $php_error = FALSE) . You can see the source code of the log library in the system/libraries/Log.php . To create your own log library by overriding the default behavior, read this page .
Create file system/application/libraries/MY_Log.php :
class MY_Log extends CI_Log { function MY_Log() { parent::CI_Log(); }
Donny kurnia
source share