#39812 [Opn->Bgs]: priority order in syslog() unclear
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 11:26:01 +0000 |
| Subject: | #39812 [Opn->Bgs]: priority order in syslog() unclear | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377584@lists.php.net to get a copy of this message | ||
ID: 39812
Updated by: vrana@php.net
Reported By: wv at xs2mail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
LOG_EMERG has highest priority, LOG_DEBUG has lowest priority - the
table really is in descending orded.
Previous Comments:
------------------------------------------------------------------------
[2006-12-13 10:24:03] wv at xs2mail dot com
Description:
------------
Table 1 in the documentation on the "syslog" function says "syslog()
Priorities (in descending order)". The table starts with LOG_EMERG,
which is defined as 0 (zero).
As is always the case with priority lists, one is easily misunderstood.
If A has a higher priority than B, it means in this case A < B.
Suggested solution:
1) Place the values of the constants in the table explicitly.
2) or put an example in that shows how to compare priorities.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39812&edit=1