Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.14.6

Request #2853 Request for Log::stringToPriority
Submitted: 2004-11-29 15:31 UTC
From: andrew dot libby at perfectorder dot com Assigned: jon
Status: Closed Package: Log
PHP Version: 5.0.1 OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-29 15:31 UTC] andrew dot libby at perfectorder dot com
Description: ------------ It's attractive to have a stringToPriority() method added to the PEAR Log class to compliment the priorityToString() method. An example method might look like: function stringToPriority($str) { $levels = array( 'emergencey' => PEAR_LOG_EMERG, 'alert' => PEAR_LOG_ALERT, 'critical' => PEAR_LOG_CRIT, 'error' => PEAR_LOG_ERR, 'warning' => PEAR_LOG_WARNING, 'notice' => PEAR_LOG_NOTICE, 'info' => PEAR_LOG_INFO, 'debug' => PEAR_LOG_DEBUG ); return $levels[$str]; } We're making pretty heavy use of this code, so if you're in need of maintenance help, I'm certianly willing to help with bugs and scuch as they come up.

Comments

 [2005-01-09 23:42 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!