Is there anyway to customize the filename of log generated by log_message() in CodeIgniter 2.1.0? By default, it’s filename was generated based on the current date.
Is there anyway to customize the filename of log generated by log_message() in CodeIgniter
Share
log_message()function is common system function. Its usingLog::write_log()method for logging error. Its not good hack the Core files. So you can extend Log library and overwritewrite_log()function.If you didnt extend your
Logclass yet. Create fileapplication/libraries/MY_Log.phpThan
log_message()function will work as your wish