Cool. it is a error constant. Maybe that should go into the comment in the code. Else some one else will go down this path which I had taken!
Chin Yong http://www.ablewise.com On Apr 12, 9:46 pm, "nate" <[EMAIL PROTECTED]> wrote: > It basically fills in for PHP on an error constant that's not there > but should be. Seehttp://us.php.net/syslog > > On Apr 12, 7:33 am, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > > > On 4/12/07, redhex <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > Under the config core.php. line 64 there is this line: > > > define('LOG_ERROR', 2); > > > The manual does not state what LOG_ERROR does or what the constant > > > means. Hence I am asking what does it do? Any changes that is required > > > for this constant for a developement or production server? > > > I didn't know what it did either until now :) I did a grep -r 'LOG_ERROR' of > > my cake dir and it looks like it is used as the "type" for the function > > "log" (defined in libs/object.php): > > > function log($msg, $type = LOG_ERROR) { .... } > > > In core.php, the phpdoc comments says: > > > /** > > * Error constant. Used for differentiating error logging and debugging. > > * Currently PHP supports LOG_DEBUG > > */ > > > Which is reflected in object.php as it only differentiates between LOG_DEBUG > > and anything else in the log function. So, going back to your question, I'm > > not entirely sure what that number does since the log function doesn't seem > > to do much with it. > > > HTH, somewhat :) > > > Regards, > > Gonzalo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
