Author: grobmeier
Date: Sun May 24 13:48:47 2009
New Revision: 778149
URL: http://svn.apache.org/viewvc?rev=778149&view=rev
Log:
added additivity flag test
Modified:
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
incubator/log4php/trunk/src/test/php/configurators/test1.properties
Modified:
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php?rev=778149&r1=778148&r2=778149&view=diff
==============================================================================
---
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
(original)
+++
incubator/log4php/trunk/src/test/php/configurators/LoggerConfiguratorIniTest.php
Sun May 24 13:48:47 2009
@@ -42,6 +42,9 @@
self::assertTrue(is_a($appender, 'LoggerAppenderEcho'));
$layout = $appender->getLayout();
self::assertTrue(is_a($layout, 'LoggerLayoutSimple'));
+
+ $logger = $hierarchy->getLogger('mylogger');
+ self::assertFalse($logger->getAdditivity());
}
public function testConfigureWithRootCategory() {
Modified: incubator/log4php/trunk/src/test/php/configurators/test1.properties
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/configurators/test1.properties?rev=778149&r1=778148&r2=778149&view=diff
==============================================================================
--- incubator/log4php/trunk/src/test/php/configurators/test1.properties
(original)
+++ incubator/log4php/trunk/src/test/php/configurators/test1.properties Sun May
24 13:48:47 2009
@@ -15,4 +15,7 @@
;
log4php.appender.default = LoggerAppenderEcho
log4php.appender.default.layout = LoggerLayoutSimple
+
+log4php.additivity.mylogger= "false"
+log4php.logger.mylogger = INFO, default
log4php.rootLogger = WARN, default