i usually use $this->log() as everything usually inheritades from "object" class
On 26 Mai, 08:56, Jules <fattyju...@gmail.com> 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---