mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 22:26:41 +02:00
Implement the 8 RFC3164 severity levels instead of just 6.
- constants defined for the 2 missing levels: NOTICE and EMERGENCY. - add<level>() and <level>() convenience methods added. - TestHandler and tests updated to account for the two extra levels. - surjective mappings from the RFC3164 to only 6 levels changes to bijective. - README updated accordingly.
This commit is contained in:
@@ -43,12 +43,14 @@ class TestHandlerTest extends TestCase
|
||||
public function methodProvider()
|
||||
{
|
||||
return array(
|
||||
array('Alert' , Logger::ALERT),
|
||||
array('Critical', Logger::CRITICAL),
|
||||
array('Error' , Logger::ERROR),
|
||||
array('Warning' , Logger::WARNING),
|
||||
array('Info' , Logger::INFO),
|
||||
array('Debug' , Logger::DEBUG),
|
||||
array('Emergency', Logger::EMERGENCY),
|
||||
array('Alert' , Logger::ALERT),
|
||||
array('Critical' , Logger::CRITICAL),
|
||||
array('Error' , Logger::ERROR),
|
||||
array('Warning' , Logger::WARNING),
|
||||
array('Info' , Logger::INFO),
|
||||
array('Notice' , Logger::NOTICE),
|
||||
array('Debug' , Logger::DEBUG),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user