ErrorStack questions

From: Date: Thu, 30 Jun 2005 20:27:59 +0000
Subject: ErrorStack questions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19849@lists.php.net to get a copy of this message
1) Is there a default list of "levels" that should be used in the push() call? There's no reference in the docs to any list except MAYBE in the ES::_log() function docs. I'm guessing that the level can be whatever we want but if we want the log to be properly handled by the logging ability, it better be one of the choices the _log() function uses. If there IS a list, there should be better documentation of it. Something better than (in the push() docs) "Error level. This is NOT spell-checked". IMHO 2) Is it by design that in the levels that I asked about above, the "exception" level which is the most critical level, it is mapped to the PEAR_LOG_CRIT Log constant in the ErrorStack::_log() function? Shouldn't it be mapped to PEAR_LOG_EMERG? According to this url... <http://www.indelible.org/pear/Log/guide.php#log-levels> .. the cascade of error levels has EMERG as the highest. Looking in the sourcecode for the ErrorStack class, PEAR_LOG_CRIT is used twice. For "exception" and "critical" levels. This looks to me to be a bug. 3) are there ANY better tutorials for ErrorStack? The documentation intro, while helpful, is still confusing to me, and I'm quick to pick up on things, if I do say so myself. Any URLs for "best practices" with ErrorStack? -- matte - matte@arubanetworks.com webmonkey » arubanetworks.com <http://www.arubanetworks.com> Get Firefox! <http://www.spreadfirefox.com/community/?q=affiliates&id=2885&t=85> | Reclaim Your Inbox! <http://www.mozilla.org/products/thunderbird>

« previous php.pear.general (#19849) next »