Re: [PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Marek Kilimajer
Current version of PHP cannot forsee the future, this will be worked on when PHP5 is out and stabilized. Untill then you have to make your own judgments, for example if the array you feed into very_slow_func() has more then 1486 elements, your code will time out. Zak Mc Kracken wrote: Hi all,

[PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Zak Mc Kracken
Hi all, I'm using syslog() function to log messages. My problem is enough typical. An example: syslog ( LOG_DEBUG, "The function output is: " . very_slow_func () ); Since very_slow_func() is, as written, very slow, I would like to know in advance if this message will be actually logged or not, so