I want to be able to use the built in logging calls in order to capture some log messages. I would like to leave the $config[‘log_threshold’] set to 0 however within my model, I want to change the system logging threshold. I am using this code.
I have a profiler enabled so I am seeing that the config value has been updated, however the logs are never created. I have tried just about everything I can think of at this point. My current thought that the Log singleton is created and checks the config[‘log_threshold’] value and since it is zero, never get’s updated with the new threshold.
I have looked at how some people are loading config variables from a database to see if that would spark an idea, nothing was too obvious.
Looking for some suggestions.