Re: Re: Possible problem in PEAR Log

From: Date: Wed, 03 Jul 2002 16:34:14 +0000
Subject: Re: Re: Possible problem in PEAR Log
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7455@lists.php.net to get a copy of this message
It was only marked as a possible problem, couldnt it be solved by using a seperate set of constants (PEAR_LOG_*) which could then be mapped to the LOG_ constants if needed for syslog features where the integer is needed. I think it would be better to be as consistent as possible across platforms, I can do the changes if they are agreeable. At 15:40 03/07/2002 +0200, Pierre-Alain Joye wrote:
On Wed, 03 Jul 2002 14:36:37 +0100 Michael Dransfield <mike@blueroot.net> wrote: I am also using win2000, LOG_INFO does equal 6 but so does LOG_DEBUG which overwrites it LOG_NOTICE == LOG_INFO == LOG_DEBUG You can see the bug report here http://bugs.php.net/bug.php?id=18090 LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
LOG_WARNING                             => EVENTLOG_WARNING_TYPE
LOG_NOTICE, LOG_INFO, LOG_DEBUG         => EVENTLOG_INFORMATION_TYPE
As it s reported by Tom in the report. These constants are defined by php from the OS system values. The relations give you the equivalent. The problem is win32 (NT/2K/ ?XP?) use less log priorities levels than posix compliant systems. We cannot invent levels as far as the system does not manage them. hth pa -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.dev (#7455) next »