logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1180134 [30/43] - in /logging/site/trunk/docs/log4php: ./ apidocs/ apidocs/log4php/ apidocs/log4php/appenders/ apidocs/log4php/configurators/ apidocs/log4php/filters/ apidocs/log4php/helpers/ apidocs/log4php/layouts/ apidocs/log4php/render...
Date Fri, 07 Oct 2011 18:26:14 GMT
Modified: logging/site/trunk/docs/log4php/coverage-report/configurators_LoggerConfiguratorXml.php.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4php/coverage-report/configurators_LoggerConfiguratorXml.php.html?rev=1180134&r1=1180133&r2=1180134&view=diff
==============================================================================
--- logging/site/trunk/docs/log4php/coverage-report/configurators_LoggerConfiguratorXml.php.html (original)
+++ logging/site/trunk/docs/log4php/coverage-report/configurators_LoggerConfiguratorXml.php.html Fri Oct  7 18:26:07 2011
@@ -144,7 +144,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#125">configure(LoggerHierarchy $hierarchy, $url = '')</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#124">configure(LoggerHierarchy $hierarchy, $url = '')</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -167,7 +167,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#138">doConfigure($url = '', LoggerHierarchy $repository)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#137">doConfigure($url, LoggerHierarchy $repository)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -190,7 +190,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#152">doConfigureByString($xmlData, LoggerHierarchy $repository)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#151">doConfigureByString($xmlData, LoggerHierarchy $repository)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -213,7 +213,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#160">doConfigureDefault(LoggerHierarchy $repository)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#159">doConfigureDefault(LoggerHierarchy $repository)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -236,7 +236,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#168">parse($xmlData, LoggerHierarchy $repository)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#167">parse($xmlData, LoggerHierarchy $repository)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -259,7 +259,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#197">tagOpen($parser, $tag, $attribs)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#196">tagOpen($parser, $tag, $attribs)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -282,7 +282,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#384">tagClose($parser, $tag)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#383">tagClose($parser, $tag)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -305,7 +305,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#436">subst($value)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#435">subst($value)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -380,7 +380,7 @@
 <span class="lineNum" id="container38"><a name="38"></a><a href="#38" id="line38">      38</a> </span>                :  *                                                                                                                                          
 <span class="lineNum" id="container39"><a name="39"></a><a href="#39" id="line39">      39</a> </span>                :  * &lt;p&gt;There are more sample XML files included in the package under tests/ subdirectories.&lt;/p&gt;                                              
 <span class="lineNum" id="container40"><a name="40"></a><a href="#40" id="line40">      40</a> </span>                :  *                                                                                                                                          
-<span class="lineNum" id="container41"><a name="41"></a><a href="#41" id="line41">      41</a> </span>                :  * @version $Revision: 1059292 $                                                                                                            
+<span class="lineNum" id="container41"><a name="41"></a><a href="#41" id="line41">      41</a> </span>                :  * @version $Revision: 1166187 $                                                                                                            
 <span class="lineNum" id="container42"><a name="42"></a><a href="#42" id="line42">      42</a> </span>                :  * @package log4php                                                                                                                         
 <span class="lineNum" id="container43"><a name="43"></a><a href="#43" id="line43">      43</a> </span>                :  * @subpackage configurators                                                                                                                
 <span class="lineNum" id="container44"><a name="44"></a><a href="#44" id="line44">      44</a> </span>                :  * @since 0.4                                                                                                                               
@@ -462,325 +462,324 @@
 <span class="lineNum" id="container120"><a name="120"></a><a href="#120" id="line120">     120</a> </span>                :      * set to &quot;1&quot;.                                                                                                                          
 <span class="lineNum" id="container121"><a name="121"></a><a href="#121" id="line121">     121</a> </span>                :      *                                                                                                                                      
 <span class="lineNum" id="container122"><a name="122"></a><a href="#122" id="line122">     122</a> </span>                :      * @param string $url                                                                                                                   
-<span class="lineNum" id="container123"><a name="123"></a><a href="#123" id="line123">     123</a> </span>                :      * @static                                                                                                                              
-<span class="lineNum" id="container124"><a name="124"></a><a href="#124" id="line124">     124</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container125"><a name="125"></a><a href="#125" id="line125">     125</a> </span>                :     public function configure(LoggerHierarchy $hierarchy, $url = '') {                                                                      
-<span class="lineNum" id="container126"><a name="126"></a><a href="#126" id="line126">     126</a> </span><span class="lineCov">              2 :         return $this-&gt;doConfigure($url, $hierarchy);                                                                                        </span>
-<span class="lineNum" id="container127"><a name="127"></a><a href="#127" id="line127">     127</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
-<span class="lineNum" id="container128"><a name="128"></a><a href="#128" id="line128">     128</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container129"><a name="129"></a><a href="#129" id="line129">     129</a> </span>                :     /**                                                                                                                                     
-<span class="lineNum" id="container130"><a name="130"></a><a href="#130" id="line130">     130</a> </span>                :      * Configure the given &lt;b&gt;repository&lt;/b&gt; using the resource pointed by &lt;b&gt;url&lt;/b&gt;.                                                      
-<span class="lineNum" id="container131"><a name="131"></a><a href="#131" id="line131">     131</a> </span>                :      * &lt;b&gt;Url&lt;/b&gt; is any valid resurce as defined in {@link PHP_MANUAL#file} function.                                                      
-<span class="lineNum" id="container132"><a name="132"></a><a href="#132" id="line132">     132</a> </span>                :      * Note that the resource will be search with &lt;i&gt;use_include_path&lt;/i&gt; parameter                                                         
-<span class="lineNum" id="container133"><a name="133"></a><a href="#133" id="line133">     133</a> </span>                :      * set to &quot;1&quot;.                                                                                                                          
-<span class="lineNum" id="container134"><a name="134"></a><a href="#134" id="line134">     134</a> </span>                :      *                                                                                                                                      
-<span class="lineNum" id="container135"><a name="135"></a><a href="#135" id="line135">     135</a> </span>                :      * @param string $url                                                                                                                   
-<span class="lineNum" id="container136"><a name="136"></a><a href="#136" id="line136">     136</a> </span>                :      * @param LoggerHierarchy $repository                                                                                                   
-<span class="lineNum" id="container137"><a name="137"></a><a href="#137" id="line137">     137</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container138"><a name="138"></a><a href="#138" id="line138">     138</a> </span>                :     private function doConfigure($url = '', LoggerHierarchy $repository)                                                                    
-<span class="lineNum" id="container139"><a name="139"></a><a href="#139" id="line139">     139</a> </span>                :     {                                                                                                                                       
-<span class="lineNum" id="container140"><a name="140"></a><a href="#140" id="line140">     140</a> </span><span class="lineCov">              2 :         $xmlData = '';                                                                                                                      </span>
-<span class="lineNum" id="container141"><a name="141"></a><a href="#141" id="line141">     141</a> </span><span class="lineCov">              2 :         if (!empty($url))                                                                                                                   </span>
-<span class="lineNum" id="container142"><a name="142"></a><a href="#142" id="line142">     142</a> </span><span class="lineCov">              2 :             $xmlData = implode('', file($url, 1));                                                                                          </span>
-<span class="lineNum" id="container143"><a name="143"></a><a href="#143" id="line143">     143</a> </span><span class="lineCov">              2 :         return $this-&gt;doConfigureByString($xmlData, $repository);                                                                           </span>
-<span class="lineNum" id="container144"><a name="144"></a><a href="#144" id="line144">     144</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
-<span class="lineNum" id="container145"><a name="145"></a><a href="#145" id="line145">     145</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container146"><a name="146"></a><a href="#146" id="line146">     146</a> </span>                :     /**                                                                                                                                     
-<span class="lineNum" id="container147"><a name="147"></a><a href="#147" id="line147">     147</a> </span>                :      * Configure the given &lt;b&gt;repository&lt;/b&gt; using the configuration written in &lt;b&gt;xmlData&lt;/b&gt;.                                             
-<span class="lineNum" id="container148"><a name="148"></a><a href="#148" id="line148">     148</a> </span>                :      * Do not call this method directly. Use {@link doConfigure()} instead.                                                                 
-<span class="lineNum" id="container149"><a name="149"></a><a href="#149" id="line149">     149</a> </span>                :      * @param string $xmlData                                                                                                               
-<span class="lineNum" id="container150"><a name="150"></a><a href="#150" id="line150">     150</a> </span>                :      * @param LoggerHierarchy $repository                                                                                                   
-<span class="lineNum" id="container151"><a name="151"></a><a href="#151" id="line151">     151</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container152"><a name="152"></a><a href="#152" id="line152">     152</a> </span>                :     private function doConfigureByString($xmlData, LoggerHierarchy $repository)                                                             
-<span class="lineNum" id="container153"><a name="153"></a><a href="#153" id="line153">     153</a> </span>                :     {                                                                                                                                       
-<span class="lineNum" id="container154"><a name="154"></a><a href="#154" id="line154">     154</a> </span><span class="lineCov">              2 :         return $this-&gt;parse($xmlData, $repository);                                                                                         </span>
-<span class="lineNum" id="container155"><a name="155"></a><a href="#155" id="line155">     155</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
-<span class="lineNum" id="container156"><a name="156"></a><a href="#156" id="line156">     156</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container157"><a name="157"></a><a href="#157" id="line157">     157</a> </span>                :     /**                                                                                                                                     
-<span class="lineNum" id="container158"><a name="158"></a><a href="#158" id="line158">     158</a> </span>                :      * @param LoggerHierarchy $repository                                                                                                   
-<span class="lineNum" id="container159"><a name="159"></a><a href="#159" id="line159">     159</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container160"><a name="160"></a><a href="#160" id="line160">     160</a> </span>                :     private function doConfigureDefault(LoggerHierarchy $repository)                                                                        
-<span class="lineNum" id="container161"><a name="161"></a><a href="#161" id="line161">     161</a> </span>                :     {                                                                                                                                       
-<span class="lineNum" id="container162"><a name="162"></a><a href="#162" id="line162">     162</a> </span><span class="lineNoCov">              0 :         return $this-&gt;doConfigureByString(self::DEFAULT_CONFIGURATION, $repository);                                                        </span>
-<span class="lineNum" id="container163"><a name="163"></a><a href="#163" id="line163">     163</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
-<span class="lineNum" id="container164"><a name="164"></a><a href="#164" id="line164">     164</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container165"><a name="165"></a><a href="#165" id="line165">     165</a> </span>                :     /**                                                                                                                                     
-<span class="lineNum" id="container166"><a name="166"></a><a href="#166" id="line166">     166</a> </span>                :      * @param string $xmlData                                                                                                               
-<span class="lineNum" id="container167"><a name="167"></a><a href="#167" id="line167">     167</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container168"><a name="168"></a><a href="#168" id="line168">     168</a> </span>                :     private function parse($xmlData, LoggerHierarchy $repository)                                                                           
-<span class="lineNum" id="container169"><a name="169"></a><a href="#169" id="line169">     169</a> </span>                :     {                                                                                                                                       
-<span class="lineNum" id="container170"><a name="170"></a><a href="#170" id="line170">     170</a> </span>                :         // Logger::resetConfiguration();                                                                                                    
-<span class="lineNum" id="container171"><a name="171"></a><a href="#171" id="line171">     171</a> </span><span class="lineCov">              2 :         $this-&gt;repository = $repository;                                                                                                    </span>
-<span class="lineNum" id="container172"><a name="172"></a><a href="#172" id="line172">     172</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container173"><a name="173"></a><a href="#173" id="line173">     173</a> </span><span class="lineCov">              2 :         $parser = xml_parser_create_ns();                                                                                                   </span>
-<span class="lineNum" id="container174"><a name="174"></a><a href="#174" id="line174">     174</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container175"><a name="175"></a><a href="#175" id="line175">     175</a> </span><span class="lineCov">              2 :         xml_set_object($parser, $this);                                                                                                     </span>
-<span class="lineNum" id="container176"><a name="176"></a><a href="#176" id="line176">     176</a> </span><span class="lineCov">              2 :         xml_set_element_handler($parser, &quot;tagOpen&quot;, &quot;tagClose&quot;);                                                                            </span>
-<span class="lineNum" id="container177"><a name="177"></a><a href="#177" id="line177">     177</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container178"><a name="178"></a><a href="#178" id="line178">     178</a> </span><span class="lineCov">              2 :         $result = xml_parse($parser, $xmlData, true);                                                                                       </span>
-<span class="lineNum" id="container179"><a name="179"></a><a href="#179" id="line179">     179</a> </span><span class="lineCov">              2 :         if (!$result) {                                                                                                                     </span>
-<span class="lineNum" id="container180"><a name="180"></a><a href="#180" id="line180">     180</a> </span><span class="lineNoCov">              0 :             $errorCode = xml_get_error_code($parser);                                                                                       </span>
-<span class="lineNum" id="container181"><a name="181"></a><a href="#181" id="line181">     181</a> </span><span class="lineNoCov">              0 :             $errorStr = xml_error_string($errorCode);                                                                                       </span>
-<span class="lineNum" id="container182"><a name="182"></a><a href="#182" id="line182">     182</a> </span><span class="lineNoCov">              0 :             $errorLine = xml_get_current_line_number($parser);                                                                              </span>
-<span class="lineNum" id="container183"><a name="183"></a><a href="#183" id="line183">     183</a> </span><span class="lineNoCov">              0 :             $this-&gt;repository-&gt;resetConfiguration();                                                                                        </span>
-<span class="lineNum" id="container184"><a name="184"></a><a href="#184" id="line184">     184</a> </span><span class="lineNoCov">              0 :         } else {                                                                                                                            </span>
-<span class="lineNum" id="container185"><a name="185"></a><a href="#185" id="line185">     185</a> </span><span class="lineCov">              2 :             xml_parser_free($parser);                                                                                                       </span>
-<span class="lineNum" id="container186"><a name="186"></a><a href="#186" id="line186">     186</a> </span>                :         }                                                                                                                                   
-<span class="lineNum" id="container187"><a name="187"></a><a href="#187" id="line187">     187</a> </span><span class="lineCov">              2 :         return $result;                                                                                                                     </span>
-<span class="lineNum" id="container188"><a name="188"></a><a href="#188" id="line188">     188</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
-<span class="lineNum" id="container189"><a name="189"></a><a href="#189" id="line189">     189</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container190"><a name="190"></a><a href="#190" id="line190">     190</a> </span>                :     /**                                                                                                                                     
-<span class="lineNum" id="container191"><a name="191"></a><a href="#191" id="line191">     191</a> </span>                :      * @param mixed $parser                                                                                                                 
-<span class="lineNum" id="container192"><a name="192"></a><a href="#192" id="line192">     192</a> </span>                :      * @param string $tag                                                                                                                   
-<span class="lineNum" id="container193"><a name="193"></a><a href="#193" id="line193">     193</a> </span>                :      * @param array $attribs                                                                                                                
-<span class="lineNum" id="container194"><a name="194"></a><a href="#194" id="line194">     194</a> </span>                :      *                                                                                                                                      
-<span class="lineNum" id="container195"><a name="195"></a><a href="#195" id="line195">     195</a> </span>                :      * @todo In 'LOGGER' case find a better way to detect 'getLogger()' method                                                              
-<span class="lineNum" id="container196"><a name="196"></a><a href="#196" id="line196">     196</a> </span>                :      */                                                                                                                                     
-<span class="lineNum" id="container197"><a name="197"></a><a href="#197" id="line197">     197</a> </span>                :     private function tagOpen($parser, $tag, $attribs)                                                                                       
-<span class="lineNum" id="container198"><a name="198"></a><a href="#198" id="line198">     198</a> </span>                :     {                                                                                                                                       
-<span class="lineNum" id="container199"><a name="199"></a><a href="#199" id="line199">     199</a> </span>                :         switch ($tag) {                                                                                                                     
-<span class="lineNum" id="container200"><a name="200"></a><a href="#200" id="line200">     200</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container201"><a name="201"></a><a href="#201" id="line201">     201</a> </span><span class="lineCov">              2 :             case 'CONFIGURATION' :                                                                                                          </span>
-<span class="lineNum" id="container202"><a name="202"></a><a href="#202" id="line202">     202</a> </span><span class="lineCov">              2 :             case self::XMLNS.':CONFIGURATION':                                                                                              </span>
-<span class="lineNum" id="container203"><a name="203"></a><a href="#203" id="line203">     203</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container204"><a name="204"></a><a href="#204" id="line204">     204</a> </span><span class="lineCov">              2 :                 if (isset($attribs['THRESHOLD'])) {                                                                                         </span>
-<span class="lineNum" id="container205"><a name="205"></a><a href="#205" id="line205">     205</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container206"><a name="206"></a><a href="#206" id="line206">     206</a> </span><span class="lineCov">              2 :                     $this-&gt;repository-&gt;setThreshold(                                                                                        </span>
-<span class="lineNum" id="container207"><a name="207"></a><a href="#207" id="line207">     207</a> </span><span class="lineCov">              2 :                         LoggerOptionConverter::toLevel(                                                                                     </span>
-<span class="lineNum" id="container208"><a name="208"></a><a href="#208" id="line208">     208</a> </span><span class="lineCov">              2 :                             $this-&gt;subst($attribs['THRESHOLD']),                                                                            </span>
-<span class="lineNum" id="container209"><a name="209"></a><a href="#209" id="line209">     209</a> </span><span class="lineCov">              2 :                             $this-&gt;repository-&gt;getThreshold()                                                                               </span>
-<span class="lineNum" id="container210"><a name="210"></a><a href="#210" id="line210">     210</a> </span><span class="lineCov">              2 :                         )                                                                                                                   </span>
-<span class="lineNum" id="container211"><a name="211"></a><a href="#211" id="line211">     211</a> </span><span class="lineCov">              2 :                     );                                                                                                                      </span>
-<span class="lineNum" id="container212"><a name="212"></a><a href="#212" id="line212">     212</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container213"><a name="213"></a><a href="#213" id="line213">     213</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container214"><a name="214"></a><a href="#214" id="line214">     214</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container215"><a name="215"></a><a href="#215" id="line215">     215</a> </span><span class="lineCov">              2 :             case 'APPENDER' :                                                                                                               </span>
-<span class="lineNum" id="container216"><a name="216"></a><a href="#216" id="line216">     216</a> </span><span class="lineCov">              2 :             case self::XMLNS.':APPENDER':                                                                                                   </span>
-<span class="lineNum" id="container217"><a name="217"></a><a href="#217" id="line217">     217</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container218"><a name="218"></a><a href="#218" id="line218">     218</a> </span><span class="lineCov">              2 :                 unset($this-&gt;appender);                                                                                                     </span>
-<span class="lineNum" id="container219"><a name="219"></a><a href="#219" id="line219">     219</a> </span><span class="lineCov">              2 :                 $this-&gt;appender = null;                                                                                                     </span>
-<span class="lineNum" id="container220"><a name="220"></a><a href="#220" id="line220">     220</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container221"><a name="221"></a><a href="#221" id="line221">     221</a> </span><span class="lineCov">              2 :                 $name  = $this-&gt;subst(@$attribs['NAME']);                                                                                   </span>
-<span class="lineNum" id="container222"><a name="222"></a><a href="#222" id="line222">     222</a> </span><span class="lineCov">              2 :                 $class = $this-&gt;subst(@$attribs['CLASS']);                                                                                  </span>
-<span class="lineNum" id="container223"><a name="223"></a><a href="#223" id="line223">     223</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container224"><a name="224"></a><a href="#224" id="line224">     224</a> </span><span class="lineCov">              2 :                 $this-&gt;appender = LoggerAppenderPool::getAppenderFromPool($name, $class);                                                   </span>
-<span class="lineNum" id="container225"><a name="225"></a><a href="#225" id="line225">     225</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container226"><a name="226"></a><a href="#226" id="line226">     226</a> </span><span class="lineCov">              2 :                 if (isset($attribs['THRESHOLD'])) {                                                                                         </span>
-<span class="lineNum" id="container227"><a name="227"></a><a href="#227" id="line227">     227</a> </span><span class="lineCov">              2 :                     $this-&gt;appender-&gt;setThreshold(                                                                                          </span>
-<span class="lineNum" id="container228"><a name="228"></a><a href="#228" id="line228">     228</a> </span><span class="lineCov">              2 :                         LoggerOptionConverter::toLevel(                                                                                     </span>
-<span class="lineNum" id="container229"><a name="229"></a><a href="#229" id="line229">     229</a> </span><span class="lineCov">              2 :                             $this-&gt;subst($attribs['THRESHOLD']), $this-&gt;appender-&gt;getThreshold()));                                         </span>
-<span class="lineNum" id="container230"><a name="230"></a><a href="#230" id="line230">     230</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container231"><a name="231"></a><a href="#231" id="line231">     231</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container232"><a name="232"></a><a href="#232" id="line232">     232</a> </span><span class="lineCov">              2 :                 $this-&gt;state[] = self::APPENDER_STATE;                                                                                      </span>
-<span class="lineNum" id="container233"><a name="233"></a><a href="#233" id="line233">     233</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container234"><a name="234"></a><a href="#234" id="line234">     234</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container235"><a name="235"></a><a href="#235" id="line235">     235</a> </span><span class="lineCov">              2 :             case 'APPENDER_REF' :                                                                                                           </span>
-<span class="lineNum" id="container236"><a name="236"></a><a href="#236" id="line236">     236</a> </span><span class="lineCov">              2 :             case 'APPENDER-REF' :                                                                                                           </span>
-<span class="lineNum" id="container237"><a name="237"></a><a href="#237" id="line237">     237</a> </span><span class="lineCov">              2 :             case self::XMLNS.':APPENDER_REF':                                                                                               </span>
-<span class="lineNum" id="container238"><a name="238"></a><a href="#238" id="line238">     238</a> </span><span class="lineCov">              2 :             case self::XMLNS.':APPENDER-REF':                                                                                               </span>
-<span class="lineNum" id="container239"><a name="239"></a><a href="#239" id="line239">     239</a> </span><span class="lineCov">              2 :                 if (isset($attribs['REF']) and !empty($attribs['REF'])) {                                                                   </span>
-<span class="lineNum" id="container240"><a name="240"></a><a href="#240" id="line240">     240</a> </span><span class="lineCov">              2 :                     $appenderName = $this-&gt;subst($attribs['REF']);                                                                          </span>
-<span class="lineNum" id="container241"><a name="241"></a><a href="#241" id="line241">     241</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container242"><a name="242"></a><a href="#242" id="line242">     242</a> </span><span class="lineCov">              2 :                     $appender = LoggerAppenderPool::getAppenderFromPool($appenderName);                                                     </span>
-<span class="lineNum" id="container243"><a name="243"></a><a href="#243" id="line243">     243</a> </span><span class="lineCov">              2 :                     if ($appender !== null) {                                                                                               </span>
-<span class="lineNum" id="container244"><a name="244"></a><a href="#244" id="line244">     244</a> </span><span class="lineCov">              2 :                         switch (end($this-&gt;state)) {                                                                                        </span>
-<span class="lineNum" id="container245"><a name="245"></a><a href="#245" id="line245">     245</a> </span><span class="lineCov">              2 :                             case self::LOGGER_STATE:                                                                                        </span>
-<span class="lineNum" id="container246"><a name="246"></a><a href="#246" id="line246">     246</a> </span><span class="lineCov">              2 :                             case self::ROOT_STATE:                                                                                          </span>
-<span class="lineNum" id="container247"><a name="247"></a><a href="#247" id="line247">     247</a> </span><span class="lineCov">              2 :                                 $this-&gt;logger-&gt;addAppender($appender);                                                                      </span>
-<span class="lineNum" id="container248"><a name="248"></a><a href="#248" id="line248">     248</a> </span><span class="lineCov">              2 :                                 break;                                                                                                      </span>
-<span class="lineNum" id="container249"><a name="249"></a><a href="#249" id="line249">     249</a> </span><span class="lineCov">              2 :                         }                                                                                                                   </span>
-<span class="lineNum" id="container250"><a name="250"></a><a href="#250" id="line250">     250</a> </span><span class="lineCov">              2 :                     }                                                                                                                       </span>
-<span class="lineNum" id="container251"><a name="251"></a><a href="#251" id="line251">     251</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container252"><a name="252"></a><a href="#252" id="line252">     252</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container253"><a name="253"></a><a href="#253" id="line253">     253</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container254"><a name="254"></a><a href="#254" id="line254">     254</a> </span><span class="lineCov">              2 :             case 'FILTER' :                                                                                                                 </span>
-<span class="lineNum" id="container255"><a name="255"></a><a href="#255" id="line255">     255</a> </span><span class="lineCov">              2 :             case self::XMLNS.':FILTER':                                                                                                     </span>
-<span class="lineNum" id="container256"><a name="256"></a><a href="#256" id="line256">     256</a> </span><span class="lineCov">              2 :                 unset($this-&gt;filter);                                                                                                       </span>
-<span class="lineNum" id="container257"><a name="257"></a><a href="#257" id="line257">     257</a> </span><span class="lineCov">              2 :                 $this-&gt;filter = null;                                                                                                       </span>
-<span class="lineNum" id="container258"><a name="258"></a><a href="#258" id="line258">     258</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container259"><a name="259"></a><a href="#259" id="line259">     259</a> </span><span class="lineCov">              2 :                 $filterName = basename($this-&gt;subst(@$attribs['CLASS']));                                                                   </span>
-<span class="lineNum" id="container260"><a name="260"></a><a href="#260" id="line260">     260</a> </span><span class="lineCov">              2 :                 if (!empty($filterName)) {                                                                                                  </span>
-<span class="lineNum" id="container261"><a name="261"></a><a href="#261" id="line261">     261</a> </span><span class="lineCov">              2 :                     $this-&gt;filter = new $filterName();                                                                                      </span>
-<span class="lineNum" id="container262"><a name="262"></a><a href="#262" id="line262">     262</a> </span><span class="lineCov">              2 :                     $this-&gt;state[] = self::FILTER_STATE;                                                                                    </span>
-<span class="lineNum" id="container263"><a name="263"></a><a href="#263" id="line263">     263</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container264"><a name="264"></a><a href="#264" id="line264">     264</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container265"><a name="265"></a><a href="#265" id="line265">     265</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container266"><a name="266"></a><a href="#266" id="line266">     266</a> </span><span class="lineCov">              2 :             case 'LAYOUT':                                                                                                                  </span>
-<span class="lineNum" id="container267"><a name="267"></a><a href="#267" id="line267">     267</a> </span><span class="lineCov">              2 :             case self::XMLNS.':LAYOUT':                                                                                                     </span>
-<span class="lineNum" id="container268"><a name="268"></a><a href="#268" id="line268">     268</a> </span><span class="lineCov">              2 :                 $class = @$attribs['CLASS'];                                                                                                </span>
-<span class="lineNum" id="container269"><a name="269"></a><a href="#269" id="line269">     269</a> </span><span class="lineCov">              2 :                 $this-&gt;layout = LoggerReflectionUtils::createObject($this-&gt;subst($class));                                                  </span>
-<span class="lineNum" id="container270"><a name="270"></a><a href="#270" id="line270">     270</a> </span><span class="lineCov">              2 :                 $this-&gt;state[] = self::LAYOUT_STATE;                                                                                        </span>
-<span class="lineNum" id="container271"><a name="271"></a><a href="#271" id="line271">     271</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container272"><a name="272"></a><a href="#272" id="line272">     272</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container273"><a name="273"></a><a href="#273" id="line273">     273</a> </span><span class="lineCov">              2 :             case 'LOGGER':                                                                                                                  </span>
-<span class="lineNum" id="container274"><a name="274"></a><a href="#274" id="line274">     274</a> </span><span class="lineCov">              2 :             case self::XMLNS.':LOGGER':                                                                                                     </span>
-<span class="lineNum" id="container275"><a name="275"></a><a href="#275" id="line275">     275</a> </span>                :                 // $this-&gt;logger is assigned by reference.                                                                                  
-<span class="lineNum" id="container276"><a name="276"></a><a href="#276" id="line276">     276</a> </span>                :                 // Only '$this-&gt;logger=null;' destroys referenced object                                                                    
-<span class="lineNum" id="container277"><a name="277"></a><a href="#277" id="line277">     277</a> </span><span class="lineCov">              2 :                 unset($this-&gt;logger);                                                                                                       </span>
-<span class="lineNum" id="container278"><a name="278"></a><a href="#278" id="line278">     278</a> </span><span class="lineCov">              2 :                 $this-&gt;logger = null;                                                                                                       </span>
-<span class="lineNum" id="container279"><a name="279"></a><a href="#279" id="line279">     279</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container280"><a name="280"></a><a href="#280" id="line280">     280</a> </span><span class="lineCov">              2 :                 $loggerName = $this-&gt;subst(@$attribs['NAME']);                                                                              </span>
-<span class="lineNum" id="container281"><a name="281"></a><a href="#281" id="line281">     281</a> </span><span class="lineCov">              2 :                 if (!empty($loggerName)) {                                                                                                  </span>
-<span class="lineNum" id="container282"><a name="282"></a><a href="#282" id="line282">     282</a> </span><span class="lineCov">              2 :                     $this-&gt;logger = $this-&gt;repository-&gt;getLogger($loggerName);                                                              </span>
-<span class="lineNum" id="container283"><a name="283"></a><a href="#283" id="line283">     283</a> </span><span class="lineCov">              2 :                     if ($this-&gt;logger !== null and isset($attribs['ADDITIVITY'])) {                                                         </span>
-<span class="lineNum" id="container284"><a name="284"></a><a href="#284" id="line284">     284</a> </span><span class="lineNoCov">              0 :                         $additivity = LoggerOptionConverter::toBoolean($this-&gt;subst($attribs['ADDITIVITY']), true);                         </span>
-<span class="lineNum" id="container285"><a name="285"></a><a href="#285" id="line285">     285</a> </span><span class="lineNoCov">              0 :                         $this-&gt;logger-&gt;setAdditivity($additivity);                                                                          </span>
-<span class="lineNum" id="container286"><a name="286"></a><a href="#286" id="line286">     286</a> </span><span class="lineNoCov">              0 :                     }                                                                                                                       </span>
-<span class="lineNum" id="container287"><a name="287"></a><a href="#287" id="line287">     287</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container288"><a name="288"></a><a href="#288" id="line288">     288</a> </span><span class="lineCov">              2 :                 $this-&gt;state[] = self::LOGGER_STATE;;                                                                                       </span>
-<span class="lineNum" id="container289"><a name="289"></a><a href="#289" id="line289">     289</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container290"><a name="290"></a><a href="#290" id="line290">     290</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container291"><a name="291"></a><a href="#291" id="line291">     291</a> </span><span class="lineCov">              2 :             case 'LEVEL':                                                                                                                   </span>
-<span class="lineNum" id="container292"><a name="292"></a><a href="#292" id="line292">     292</a> </span><span class="lineCov">              2 :             case self::XMLNS.':LEVEL':                                                                                                      </span>
-<span class="lineNum" id="container293"><a name="293"></a><a href="#293" id="line293">     293</a> </span><span class="lineCov">              2 :             case 'PRIORITY':                                                                                                                </span>
-<span class="lineNum" id="container294"><a name="294"></a><a href="#294" id="line294">     294</a> </span><span class="lineCov">              2 :             case self::XMLNS.':PRIORITY':                                                                                                   </span>
-<span class="lineNum" id="container295"><a name="295"></a><a href="#295" id="line295">     295</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container296"><a name="296"></a><a href="#296" id="line296">     296</a> </span><span class="lineCov">              2 :                 if (!isset($attribs['VALUE'])) {                                                                                            </span>
-<span class="lineNum" id="container297"><a name="297"></a><a href="#297" id="line297">     297</a> </span>                :                     // LoggerDOMConfigurator::tagOpen() LEVEL value not set                                                                 
-<span class="lineNum" id="container298"><a name="298"></a><a href="#298" id="line298">     298</a> </span><span class="lineNoCov">              0 :                     break;                                                                                                                  </span>
-<span class="lineNum" id="container299"><a name="299"></a><a href="#299" id="line299">     299</a> </span><span class="lineDeadCode">                :                 }                                                                                                                           </span>
-<span class="lineNum" id="container300"><a name="300"></a><a href="#300" id="line300">     300</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container301"><a name="301"></a><a href="#301" id="line301">     301</a> </span><span class="lineCov">              2 :                 if ($this-&gt;logger === null) {                                                                                               </span>
-<span class="lineNum" id="container302"><a name="302"></a><a href="#302" id="line302">     302</a> </span>                :                     // LoggerDOMConfigurator::tagOpen() LEVEL. parent logger is null                                                        
-<span class="lineNum" id="container303"><a name="303"></a><a href="#303" id="line303">     303</a> </span><span class="lineNoCov">              0 :                     break;                                                                                                                  </span>
-<span class="lineNum" id="container304"><a name="304"></a><a href="#304" id="line304">     304</a> </span><span class="lineDeadCode">                :                 }                                                                                                                           </span>
-<span class="lineNum" id="container305"><a name="305"></a><a href="#305" id="line305">     305</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container306"><a name="306"></a><a href="#306" id="line306">     306</a> </span><span class="lineCov">              2 :                 switch (end($this-&gt;state)) {                                                                                                </span>
-<span class="lineNum" id="container307"><a name="307"></a><a href="#307" id="line307">     307</a> </span><span class="lineCov">              2 :                     case self::ROOT_STATE:                                                                                                  </span>
-<span class="lineNum" id="container308"><a name="308"></a><a href="#308" id="line308">     308</a> </span><span class="lineCov">              2 :                         $this-&gt;logger-&gt;setLevel(                                                                                            </span>
-<span class="lineNum" id="container309"><a name="309"></a><a href="#309" id="line309">     309</a> </span><span class="lineCov">              2 :                             LoggerOptionConverter::toLevel(                                                                                 </span>
-<span class="lineNum" id="container310"><a name="310"></a><a href="#310" id="line310">     310</a> </span><span class="lineCov">              2 :                                 $this-&gt;subst($attribs['VALUE']),                                                                            </span>
-<span class="lineNum" id="container311"><a name="311"></a><a href="#311" id="line311">     311</a> </span><span class="lineCov">              2 :                                 $this-&gt;logger-&gt;getLevel()                                                                                   </span>
-<span class="lineNum" id="container312"><a name="312"></a><a href="#312" id="line312">     312</a> </span><span class="lineCov">              2 :                             )                                                                                                               </span>
-<span class="lineNum" id="container313"><a name="313"></a><a href="#313" id="line313">     313</a> </span><span class="lineCov">              2 :                         );                                                                                                                  </span>
-<span class="lineNum" id="container314"><a name="314"></a><a href="#314" id="line314">     314</a> </span><span class="lineCov">              2 :                         break;                                                                                                              </span>
-<span class="lineNum" id="container315"><a name="315"></a><a href="#315" id="line315">     315</a> </span><span class="lineCov">              2 :                     case self::LOGGER_STATE:                                                                                                </span>
-<span class="lineNum" id="container316"><a name="316"></a><a href="#316" id="line316">     316</a> </span><span class="lineCov">              2 :                         $this-&gt;logger-&gt;setLevel(                                                                                            </span>
-<span class="lineNum" id="container317"><a name="317"></a><a href="#317" id="line317">     317</a> </span><span class="lineCov">              2 :                             LoggerOptionConverter::toLevel(                                                                                 </span>
-<span class="lineNum" id="container318"><a name="318"></a><a href="#318" id="line318">     318</a> </span><span class="lineCov">              2 :                                 $this-&gt;subst($attribs['VALUE']),                                                                            </span>
-<span class="lineNum" id="container319"><a name="319"></a><a href="#319" id="line319">     319</a> </span><span class="lineCov">              2 :                                 $this-&gt;logger-&gt;getLevel()                                                                                   </span>
-<span class="lineNum" id="container320"><a name="320"></a><a href="#320" id="line320">     320</a> </span><span class="lineCov">              2 :                             )                                                                                                               </span>
-<span class="lineNum" id="container321"><a name="321"></a><a href="#321" id="line321">     321</a> </span><span class="lineCov">              2 :                         );                                                                                                                  </span>
-<span class="lineNum" id="container322"><a name="322"></a><a href="#322" id="line322">     322</a> </span><span class="lineCov">              2 :                         break;                                                                                                              </span>
-<span class="lineNum" id="container323"><a name="323"></a><a href="#323" id="line323">     323</a> </span><span class="lineNoCov">              0 :                     default:                                                                                                                </span>
-<span class="lineNum" id="container324"><a name="324"></a><a href="#324" id="line324">     324</a> </span>                :                         //LoggerLog::warn(&quot;LoggerDOMConfigurator::tagOpen() LEVEL state '{$this-&gt;state}' not allowed here&quot;);                
-<span class="lineNum" id="container325"><a name="325"></a><a href="#325" id="line325">     325</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container326"><a name="326"></a><a href="#326" id="line326">     326</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container327"><a name="327"></a><a href="#327" id="line327">     327</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container328"><a name="328"></a><a href="#328" id="line328">     328</a> </span><span class="lineCov">              2 :             case 'PARAM':                                                                                                                   </span>
-<span class="lineNum" id="container329"><a name="329"></a><a href="#329" id="line329">     329</a> </span><span class="lineCov">              2 :             case self::XMLNS.':PARAM':                                                                                                      </span>
-<span class="lineNum" id="container330"><a name="330"></a><a href="#330" id="line330">     330</a> </span><span class="lineCov">              2 :                 if (!isset($attribs['NAME'])) {                                                                                             </span>
-<span class="lineNum" id="container331"><a name="331"></a><a href="#331" id="line331">     331</a> </span>                :                     // LoggerDOMConfigurator::tagOpen() PARAM attribute 'name' not defined.                                                 
-<span class="lineNum" id="container332"><a name="332"></a><a href="#332" id="line332">     332</a> </span><span class="lineNoCov">              0 :                     break;                                                                                                                  </span>
-<span class="lineNum" id="container333"><a name="333"></a><a href="#333" id="line333">     333</a> </span><span class="lineDeadCode">                :                 }                                                                                                                           </span>
-<span class="lineNum" id="container334"><a name="334"></a><a href="#334" id="line334">     334</a> </span><span class="lineCov">              2 :                 if (!isset($attribs['VALUE'])) {                                                                                            </span>
-<span class="lineNum" id="container335"><a name="335"></a><a href="#335" id="line335">     335</a> </span>                :                     // LoggerDOMConfigurator::tagOpen() PARAM. attribute 'value' not defined.                                               
-<span class="lineNum" id="container336"><a name="336"></a><a href="#336" id="line336">     336</a> </span><span class="lineNoCov">              0 :                     break;                                                                                                                  </span>
-<span class="lineNum" id="container337"><a name="337"></a><a href="#337" id="line337">     337</a> </span><span class="lineDeadCode">                :                 }                                                                                                                           </span>
-<span class="lineNum" id="container338"><a name="338"></a><a href="#338" id="line338">     338</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container339"><a name="339"></a><a href="#339" id="line339">     339</a> </span><span class="lineCov">              2 :                 switch (end($this-&gt;state)) {                                                                                                </span>
-<span class="lineNum" id="container340"><a name="340"></a><a href="#340" id="line340">     340</a> </span><span class="lineCov">              2 :                     case self::APPENDER_STATE:                                                                                              </span>
-<span class="lineNum" id="container341"><a name="341"></a><a href="#341" id="line341">     341</a> </span><span class="lineNoCov">              0 :                         if ($this-&gt;appender !== null) {                                                                                     </span>
-<span class="lineNum" id="container342"><a name="342"></a><a href="#342" id="line342">     342</a> </span><span class="lineNoCov">              0 :                             LoggerReflectionUtils::setter($this-&gt;appender, $this-&gt;subst($attribs['NAME']), $this-&gt;subst($attribs['VALUE']));</span>
-<span class="lineNum" id="container343"><a name="343"></a><a href="#343" id="line343">     343</a> </span><span class="lineNoCov">              0 :                         }                                                                                                                   </span>
-<span class="lineNum" id="container344"><a name="344"></a><a href="#344" id="line344">     344</a> </span><span class="lineNoCov">              0 :                         break;                                                                                                              </span>
-<span class="lineNum" id="container345"><a name="345"></a><a href="#345" id="line345">     345</a> </span><span class="lineCov">              2 :                     case self::LAYOUT_STATE:                                                                                                </span>
-<span class="lineNum" id="container346"><a name="346"></a><a href="#346" id="line346">     346</a> </span><span class="lineNoCov">              0 :                         if ($this-&gt;layout !== null) {                                                                                       </span>
-<span class="lineNum" id="container347"><a name="347"></a><a href="#347" id="line347">     347</a> </span><span class="lineNoCov">              0 :                             LoggerReflectionUtils::setter($this-&gt;layout, $this-&gt;subst($attribs['NAME']), $this-&gt;subst($attribs['VALUE']));  </span>
-<span class="lineNum" id="container348"><a name="348"></a><a href="#348" id="line348">     348</a> </span><span class="lineNoCov">              0 :                         }                                                                                                                   </span>
-<span class="lineNum" id="container349"><a name="349"></a><a href="#349" id="line349">     349</a> </span><span class="lineNoCov">              0 :                         break;                                                                                                              </span>
-<span class="lineNum" id="container350"><a name="350"></a><a href="#350" id="line350">     350</a> </span><span class="lineCov">              2 :                     case self::FILTER_STATE:                                                                                                </span>
-<span class="lineNum" id="container351"><a name="351"></a><a href="#351" id="line351">     351</a> </span><span class="lineCov">              2 :                         if ($this-&gt;filter !== null) {                                                                                       </span>
-<span class="lineNum" id="container352"><a name="352"></a><a href="#352" id="line352">     352</a> </span><span class="lineCov">              2 :                             LoggerReflectionUtils::setter($this-&gt;filter, $this-&gt;subst($attribs['NAME']), $this-&gt;subst($attribs['VALUE']));  </span>
-<span class="lineNum" id="container353"><a name="353"></a><a href="#353" id="line353">     353</a> </span><span class="lineCov">              2 :                         }                                                                                                                   </span>
-<span class="lineNum" id="container354"><a name="354"></a><a href="#354" id="line354">     354</a> </span><span class="lineCov">              2 :                         break;                                                                                                              </span>
-<span class="lineNum" id="container355"><a name="355"></a><a href="#355" id="line355">     355</a> </span><span class="lineNoCov">              0 :                     default:                                                                                                                </span>
-<span class="lineNum" id="container356"><a name="356"></a><a href="#356" id="line356">     356</a> </span>                :                         //LoggerLog::warn(&quot;LoggerDOMConfigurator::tagOpen() PARAM state '{$this-&gt;state}' not allowed here&quot;);                
-<span class="lineNum" id="container357"><a name="357"></a><a href="#357" id="line357">     357</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container358"><a name="358"></a><a href="#358" id="line358">     358</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container359"><a name="359"></a><a href="#359" id="line359">     359</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container360"><a name="360"></a><a href="#360" id="line360">     360</a> </span><span class="lineCov">              2 :             case 'RENDERER':                                                                                                                </span>
-<span class="lineNum" id="container361"><a name="361"></a><a href="#361" id="line361">     361</a> </span><span class="lineCov">              2 :             case self::XMLNS.':RENDERER':                                                                                                   </span>
-<span class="lineNum" id="container362"><a name="362"></a><a href="#362" id="line362">     362</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container363"><a name="363"></a><a href="#363" id="line363">     363</a> </span><span class="lineCov">              2 :                 $renderedClass   = $this-&gt;subst(@$attribs['RENDEREDCLASS']);                                                                </span>
-<span class="lineNum" id="container364"><a name="364"></a><a href="#364" id="line364">     364</a> </span><span class="lineCov">              2 :                 $renderingClass  = $this-&gt;subst(@$attribs['RENDERINGCLASS']);                                                               </span>
-<span class="lineNum" id="container365"><a name="365"></a><a href="#365" id="line365">     365</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container366"><a name="366"></a><a href="#366" id="line366">     366</a> </span><span class="lineCov">              2 :                 if (!empty($renderedClass) and !empty($renderingClass)) {                                                                   </span>
-<span class="lineNum" id="container367"><a name="367"></a><a href="#367" id="line367">     367</a> </span><span class="lineCov">              2 :                     $this-&gt;repository-&gt;getRendererMap()-&gt;addRenderer($renderedClass, $renderingClass);                                      </span>
-<span class="lineNum" id="container368"><a name="368"></a><a href="#368" id="line368">     368</a> </span><span class="lineCov">              2 :                 }                                                                                                                           </span>
-<span class="lineNum" id="container369"><a name="369"></a><a href="#369" id="line369">     369</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container370"><a name="370"></a><a href="#370" id="line370">     370</a> </span>                :                                                                                                                                             
-<span class="lineNum" id="container371"><a name="371"></a><a href="#371" id="line371">     371</a> </span><span class="lineCov">              2 :             case 'ROOT':                                                                                                                    </span>
-<span class="lineNum" id="container372"><a name="372"></a><a href="#372" id="line372">     372</a> </span><span class="lineCov">              2 :             case self::XMLNS.':ROOT':                                                                                                       </span>
-<span class="lineNum" id="container373"><a name="373"></a><a href="#373" id="line373">     373</a> </span><span class="lineCov">              2 :                 $this-&gt;logger = Logger::getRootLogger();                                                                                    </span>
-<span class="lineNum" id="container374"><a name="374"></a><a href="#374" id="line374">     374</a> </span><span class="lineCov">              2 :                 $this-&gt;state[] = self::ROOT_STATE;                                                                                          </span>
-<span class="lineNum" id="container375"><a name="375"></a><a href="#375" id="line375">     375</a> </span><span class="lineCov">              2 :                 break;                                                                                                                      </span>
-<span class="lineNum" id="container376"><a name="376"></a><a href="#376" id="line376">     376</a> </span><span class="lineDeadCode">                :         }                                                                                                                                   </span>
-<span class="lineNum" id="container377"><a name="377"></a><a href="#377" id="line377">     377</a> </span><span class="lineCov">              2 :     }                                                                                                                                       </span>
+<span class="lineNum" id="container123"><a name="123"></a><a href="#123" id="line123">     123</a> </span>                :      */                                                                                                                                     
+<span class="lineNum" id="container124"><a name="124"></a><a href="#124" id="line124">     124</a> </span>                :     public function configure(LoggerHierarchy $hierarchy, $url = '') {                                                                      
+<span class="lineNum" id="container125"><a name="125"></a><a href="#125" id="line125">     125</a> </span><span class="lineCov">              2 :         return $this-&gt;doConfigure($url, $hierarchy);                                                                                        </span>
+<span class="lineNum" id="container126"><a name="126"></a><a href="#126" id="line126">     126</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
+<span class="lineNum" id="container127"><a name="127"></a><a href="#127" id="line127">     127</a> </span>                :                                                                                                                                             
+<span class="lineNum" id="container128"><a name="128"></a><a href="#128" id="line128">     128</a> </span>                :     /**                                                                                                                                     
+<span class="lineNum" id="container129"><a name="129"></a><a href="#129" id="line129">     129</a> </span>                :      * Configure the given &lt;b&gt;repository&lt;/b&gt; using the resource pointed by &lt;b&gt;url&lt;/b&gt;.                                                      
+<span class="lineNum" id="container130"><a name="130"></a><a href="#130" id="line130">     130</a> </span>                :      * &lt;b&gt;Url&lt;/b&gt; is any valid resurce as defined in {@link PHP_MANUAL#file} function.                                                      
+<span class="lineNum" id="container131"><a name="131"></a><a href="#131" id="line131">     131</a> </span>                :      * Note that the resource will be search with &lt;i&gt;use_include_path&lt;/i&gt; parameter                                                         
+<span class="lineNum" id="container132"><a name="132"></a><a href="#132" id="line132">     132</a> </span>                :      * set to &quot;1&quot;.                                                                                                                          
+<span class="lineNum" id="container133"><a name="133"></a><a href="#133" id="line133">     133</a> </span>                :      *                                                                                                                                      
+<span class="lineNum" id="container134"><a name="134"></a><a href="#134" id="line134">     134</a> </span>                :      * @param string $url                                                                                                                   
+<span class="lineNum" id="container135"><a name="135"></a><a href="#135" id="line135">     135</a> </span>                :      * @param LoggerHierarchy $repository                                                                                                   
+<span class="lineNum" id="container136"><a name="136"></a><a href="#136" id="line136">     136</a> </span>                :      */                                                                                                                                     
+<span class="lineNum" id="container137"><a name="137"></a><a href="#137" id="line137">     137</a> </span>                :     private function doConfigure($url, LoggerHierarchy $repository)                                                                         
+<span class="lineNum" id="container138"><a name="138"></a><a href="#138" id="line138">     138</a> </span>                :     {                                                                                                                                       
+<span class="lineNum" id="container139"><a name="139"></a><a href="#139" id="line139">     139</a> </span><span class="lineCov">              2 :         $xmlData = '';                                                                                                                      </span>
+<span class="lineNum" id="container140"><a name="140"></a><a href="#140" id="line140">     140</a> </span><span class="lineCov">              2 :         if (!empty($url))                                                                                                                   </span>
+<span class="lineNum" id="container141"><a name="141"></a><a href="#141" id="line141">     141</a> </span><span class="lineCov">              2 :             $xmlData = implode('', file($url, 1));                                                                                          </span>
+<span class="lineNum" id="container142"><a name="142"></a><a href="#142" id="line142">     142</a> </span><span class="lineCov">              2 :         return $this-&gt;doConfigureByString($xmlData, $repository);                                                                           </span>
+<span class="lineNum" id="container143"><a name="143"></a><a href="#143" id="line143">     143</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
+<span class="lineNum" id="container144"><a name="144"></a><a href="#144" id="line144">     144</a> </span>                :                                                                                                                                             
+<span class="lineNum" id="container145"><a name="145"></a><a href="#145" id="line145">     145</a> </span>                :     /**                                                                                                                                     
+<span class="lineNum" id="container146"><a name="146"></a><a href="#146" id="line146">     146</a> </span>                :      * Configure the given &lt;b&gt;repository&lt;/b&gt; using the configuration written in &lt;b&gt;xmlData&lt;/b&gt;.                                             
+<span class="lineNum" id="container147"><a name="147"></a><a href="#147" id="line147">     147</a> </span>                :      * Do not call this method directly. Use {@link doConfigure()} instead.                                                                 
+<span class="lineNum" id="container148"><a name="148"></a><a href="#148" id="line148">     148</a> </span>                :      * @param string $xmlData                                                                                                               
+<span class="lineNum" id="container149"><a name="149"></a><a href="#149" id="line149">     149</a> </span>                :      * @param LoggerHierarchy $repository                                                                                                   
+<span class="lineNum" id="container150"><a name="150"></a><a href="#150" id="line150">     150</a> </span>                :      */                                                                                                                                     
+<span class="lineNum" id="container151"><a name="151"></a><a href="#151" id="line151">     151</a> </span>                :     private function doConfigureByString($xmlData, LoggerHierarchy $repository)                                                             
+<span class="lineNum" id="container152"><a name="152"></a><a href="#152" id="line152">     152</a> </span>                :     {                                                                                                                                       
+<span class="lineNum" id="container153"><a name="153"></a><a href="#153" id="line153">     153</a> </span><span class="lineCov">              2 :         return $this-&gt;parse($xmlData, $repository);                                                                                         </span>
+<span class="lineNum" id="container154"><a name="154"></a><a href="#154" id="line154">     154</a> </span><span class="lineDeadCode">                :     }                                                                                                                                       </span>
+<span class="lineNum" id="container155"><a name="155"></a><a href="#155" id="line155">     155</a> </span>                :                                                                                                                                             
+<span class="lineNum" id="container156"><a name="156"></a><a href="#156" id="line156">     156</a> </span>                :     /**                                                                                                                                     

[... 879 lines stripped ...]


Mime
View raw message