Welcome Guest, Not a member yet? Register   Sign In
MY_Log
#4

[eluser]SneakyDave[/eluser]
This class doesn't quite work for me, unless I'm calling the method incorrectly.

I'm able to load this new library by autoloading it as 'MY_log', this is confirmed by some echo statements that the custom library has been loaded.

But if I use this method to try to log something
Code:
log_message ('INFO','msg');

It appears the native method is called, and these other guesses didn't work either...
Code:
$this->MY_Log->log_message ('INFO','msg') // Message: Undefined property: ::$MY_Log
Code:
$this->log_message ('INFO','msg') // blank page
Code:
$this->Log->log_message ('INFO','msg') // Message: Undefined property: ::$Log
Code:
$this->log->log_message ('INFO','msg') // Message: Undefined property: ::$log

So I don't know how the method is supposed to be called. I'm running CI 1.6.3


Messages In This Thread
MY_Log - by El Forum - 06-29-2008, 12:11 AM
MY_Log - by El Forum - 06-30-2008, 11:16 AM
MY_Log - by El Forum - 06-30-2008, 02:54 PM
MY_Log - by El Forum - 08-22-2008, 03:53 PM
MY_Log - by El Forum - 08-22-2008, 04:06 PM
MY_Log - by El Forum - 09-10-2008, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB