well, except for the boostrap files of course
although, the function is used like this:
function write($type, $msg) {}
first type, then msg!!!
so this might be your problem...
with $this->log() its the other way around
On 26 Mai, 08:56, Jules <[email protected]> wrote:
> I've written a panic() function which resides in config/bootstrap.php,
> and can be called from anywhere in my CakePHP app. The idea is that
> it is called when the site admin (me) needs to know that something has
> happened. I want it to fire and email and write to the log. To write
> to the log, I'm calling;
>
> CakeLog::write($msg, 'PANIC');
>
> but the log file isn't being created as I would expect (I've logged to
> other files before, so I know it works, but I haven't done it with
> a :: call before).
>
> No errors come up. Any advice?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---