Author: chammers
Date: Tue Oct  6 20:14:46 2009
New Revision: 822466

URL: http://svn.apache.org/viewvc?rev=822466&view=rev
Log:
LOG4PHP-81  
Now that we have the new toBoolean method we can use it.

Modified:
    incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php

Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php?rev=822466&r1=822465&r2=822466&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php Tue Oct  
6 20:14:46 2009
@@ -110,9 +110,7 @@
      * name is part of log output or not. This is true by default.
      */
     public function setCategoryPrefixing($categoryPrefixing) {
-        $this->categoryPrefixing = is_bool($categoryPrefixing) ?
-            $categoryPrefixing :
-            (bool)(strtolower($categoryPrefixing) == 'true');
+        $this->categoryPrefixing = 
LoggerOptionConverter::toBoolean($categoryPrefixing);
     }
 
     /**
@@ -128,9 +126,7 @@
      * This is true by default.
      */
     public function setContextPrinting($contextPrinting) {
-        $this->contextPrinting = is_bool($contextPrinting) ? 
-            $contextPrinting : 
-            (bool)(strtolower($contextPrinting) == 'true'); 
+        $this->contextPrinting = 
LoggerOptionConverter::toBoolean($contextPrinting); 
     }
 
     /**


Reply via email to