Welcome Guest, Not a member yet? Register   Sign In
replacing CI's log_message global function in common.php
#1

Hi all,

I would like to substitute CI's log_message function defined in common.php by my own version of that function with the same name so that all existing calls to log_message (Within CI or within my code) will continue to work.

The purpose is for the new log_message function to call my own logging solution which IS NOT an extension of the CI_Log Class. 

I know I can create a MY_Log Class and override the CI_Log Class, but if possible I would like to redirect the messaging right from the entry point (the log_message function).

Any suggestions on overriding CI global functions?

I am all ears  :-)
Reply


Messages In This Thread
replacing CI's log_message global function in common.php - by kbrouill - 05-06-2016, 06:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB