Welcome Guest, Not a member yet? Register   Sign In
Logging from outside CI
#1

[eluser]jalalski[/eluser]
I have a callback page that is called from outside the site, yet I need to make use of CI facilities.
So, I'm loading the Common, Config, Language and Log classes and instantiating the basic system, but calls to log_message are silently failing to write anything.
Simlarly:
Code:
$LOG =& load_class("Log");
$LOG->write_message(...)
doesn't have any effect.

Any clues?
#2

[eluser]Jamie Rumbelow[/eluser]
Try calling get_instance() and access the CI masterclass.
#3

[eluser]jalalski[/eluser]
Tried that, no luck Undecided

It's no big deal, I can fopen, fwrite and fclose. Just the log_message is pretty cool way to do it.




Theme © iAndrew 2016 - Forum software by © MyBB