logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1180134 [16/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/LoggerNDC.php.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4php/coverage-report/LoggerNDC.php.html?rev=1180134&r1=1180133&r2=1180134&view=diff
==============================================================================
--- logging/site/trunk/docs/log4php/coverage-report/LoggerNDC.php.html (original)
+++ logging/site/trunk/docs/log4php/coverage-report/LoggerNDC.php.html Fri Oct  7 18:26:07 2011
@@ -121,7 +121,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#111">clear()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#109">clear()</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -144,7 +144,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#120">get()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#117">get()</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="#131">getDepth()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#127">getDepth()</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="#145">pop()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#140">pop()</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="#162">peek()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#156">peek()</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="#179">push($message)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#172">push($message)</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="#187">remove()</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#179">remove()</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="#206">setMaxDepth($maxDepth)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#197">setMaxDepth($maxDepth)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -408,7 +408,7 @@
 <span class="lineNum" id="container89"><a name="89"></a><a href="#89" id="line89">      89</a> </span>                :  * 2009-09-13 19:04:27 DEBUG root : back and waiting for new connections in src/examples/php/ndc.php at 29            
 <span class="lineNum" id="container90"><a name="90"></a><a href="#90" id="line90">      90</a> </span>                :  * &lt;/pre&gt;                                                                                                             
 <span class="lineNum" id="container91"><a name="91"></a><a href="#91" id="line91">      91</a> </span>                :  *                                                                                                                    
-<span class="lineNum" id="container92"><a name="92"></a><a href="#92" id="line92">      92</a> </span>                :  * @version $Revision: 998456 $                                                                                       
+<span class="lineNum" id="container92"><a name="92"></a><a href="#92" id="line92">      92</a> </span>                :  * @version $Revision: 1166187 $                                                                                      
 <span class="lineNum" id="container93"><a name="93"></a><a href="#93" id="line93">      93</a> </span>                :  * @package log4php                                                                                                   
 <span class="lineNum" id="container94"><a name="94"></a><a href="#94" id="line94">      94</a> </span>                :  * @since 0.3                                                                                                         
 <span class="lineNum" id="container95"><a name="95"></a><a href="#95" id="line95">      95</a> </span>                :  */                                                                                                                   
@@ -424,111 +424,102 @@
 <span class="lineNum" id="container105"><a name="105"></a><a href="#105" id="line105">     105</a> </span>                :      *                                                                                                                
 <span class="lineNum" id="container106"><a name="106"></a><a href="#106" id="line106">     106</a> </span>                :      * &lt;p&gt;This method is equivalent to calling the {@link setMaxDepth()}                                              
 <span class="lineNum" id="container107"><a name="107"></a><a href="#107" id="line107">     107</a> </span>                :      * method with a zero &lt;var&gt;maxDepth&lt;/var&gt; argument.                                                               
-<span class="lineNum" id="container108"><a name="108"></a><a href="#108" id="line108">     108</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container109"><a name="109"></a><a href="#109" id="line109">     109</a> </span>                :      * @static                                                                                                        
-<span class="lineNum" id="container110"><a name="110"></a><a href="#110" id="line110">     110</a> </span>                :      */                                                                                                               
-<span class="lineNum" id="container111"><a name="111"></a><a href="#111" id="line111">     111</a> </span>                :     public static function clear() {                                                                                  
-<span class="lineNum" id="container112"><a name="112"></a><a href="#112" id="line112">     112</a> </span><span class="lineCov">              2 :         self::$stack = array();                                                                                       </span>
-<span class="lineNum" id="container113"><a name="113"></a><a href="#113" id="line113">     113</a> </span><span class="lineCov">              2 :     }                                                                                                                 </span>
-<span class="lineNum" id="container114"><a name="114"></a><a href="#114" id="line114">     114</a> </span>                :                                                                                                                       
-<span class="lineNum" id="container115"><a name="115"></a><a href="#115" id="line115">     115</a> </span>                :     /**                                                                                                               
-<span class="lineNum" id="container116"><a name="116"></a><a href="#116" id="line116">     116</a> </span>                :      * Never use this method directly, use the {@link LoggerLoggingEvent::getNDC()} method instead.                   
-<span class="lineNum" id="container117"><a name="117"></a><a href="#117" id="line117">     117</a> </span>                :      * @static                                                                                                        
-<span class="lineNum" id="container118"><a name="118"></a><a href="#118" id="line118">     118</a> </span>                :      * @return array                                                                                                  
-<span class="lineNum" id="container119"><a name="119"></a><a href="#119" id="line119">     119</a> </span>                :      */                                                                                                               
-<span class="lineNum" id="container120"><a name="120"></a><a href="#120" id="line120">     120</a> </span>                :     public static function get() {                                                                                    
-<span class="lineNum" id="container121"><a name="121"></a><a href="#121" id="line121">     121</a> </span><span class="lineCov">             13 :         return implode(' ', self::$stack);                                                                            </span>
-<span class="lineNum" id="container122"><a name="122"></a><a href="#122" id="line122">     122</a> </span><span class="lineDeadCode">                :     }                                                                                                                 </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>                :     /**                                                                                                               
-<span class="lineNum" id="container125"><a name="125"></a><a href="#125" id="line125">     125</a> </span>                :      * Get the current nesting depth of this diagnostic context.                                                      
-<span class="lineNum" id="container126"><a name="126"></a><a href="#126" id="line126">     126</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container127"><a name="127"></a><a href="#127" id="line127">     127</a> </span>                :      * @see setMaxDepth()                                                                                             
-<span class="lineNum" id="container128"><a name="128"></a><a href="#128" id="line128">     128</a> </span>                :      * @return integer                                                                                                
-<span class="lineNum" id="container129"><a name="129"></a><a href="#129" id="line129">     129</a> </span>                :      * @static                                                                                                        
-<span class="lineNum" id="container130"><a name="130"></a><a href="#130" id="line130">     130</a> </span>                :      */                                                                                                               
-<span class="lineNum" id="container131"><a name="131"></a><a href="#131" id="line131">     131</a> </span>                :     public static function getDepth() {                                                                               
-<span class="lineNum" id="container132"><a name="132"></a><a href="#132" id="line132">     132</a> </span><span class="lineCov">              2 :         return count(self::$stack);                                                                                   </span>
-<span class="lineNum" id="container133"><a name="133"></a><a href="#133" id="line133">     133</a> </span><span class="lineDeadCode">                :     }                                                                                                                 </span>
-<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>                :     /**                                                                                                               
-<span class="lineNum" id="container136"><a name="136"></a><a href="#136" id="line136">     136</a> </span>                :      * Clients should call this method before leaving a diagnostic                                                    
-<span class="lineNum" id="container137"><a name="137"></a><a href="#137" id="line137">     137</a> </span>                :      * context.                                                                                                       
-<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>                :      * &lt;p&gt;The returned value is the value that was pushed last. If no                                                 
-<span class="lineNum" id="container140"><a name="140"></a><a href="#140" id="line140">     140</a> </span>                :      * context is available, then the empty string &quot;&quot; is returned.&lt;/p&gt;                                                
-<span class="lineNum" id="container141"><a name="141"></a><a href="#141" id="line141">     141</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container142"><a name="142"></a><a href="#142" id="line142">     142</a> </span>                :      * @return string The innermost diagnostic context.                                                               
-<span class="lineNum" id="container143"><a name="143"></a><a href="#143" id="line143">     143</a> </span>                :      * @static                                                                                                        
-<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>                :     public static function pop() {                                                                                    
-<span class="lineNum" id="container146"><a name="146"></a><a href="#146" id="line146">     146</a> </span><span class="lineCov">              1 :         if(count(self::$stack) &gt; 0) {                                                                                 </span>
-<span class="lineNum" id="container147"><a name="147"></a><a href="#147" id="line147">     147</a> </span><span class="lineCov">              1 :             return array_pop(self::$stack);                                                                           </span>
-<span class="lineNum" id="container148"><a name="148"></a><a href="#148" id="line148">     148</a> </span><span class="lineDeadCode">                :         } else {                                                                                                      </span>
-<span class="lineNum" id="container149"><a name="149"></a><a href="#149" id="line149">     149</a> </span><span class="lineCov">              1 :             return '';                                                                                                </span>
-<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><span class="lineDeadCode">                :     }                                                                                                                 </span>
-<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="lineNum" id="container154"><a name="154"></a><a href="#154" id="line154">     154</a> </span>                :      * Looks at the last diagnostic context at the top of this NDC                                                    
-<span class="lineNum" id="container155"><a name="155"></a><a href="#155" id="line155">     155</a> </span>                :      * without removing it.                                                                                           
-<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>                :      * &lt;p&gt;The returned value is the value that was pushed last. If no                                                 
-<span class="lineNum" id="container158"><a name="158"></a><a href="#158" id="line158">     158</a> </span>                :      * context is available, then the empty string &quot;&quot; is returned.&lt;/p&gt;                                                
-<span class="lineNum" id="container159"><a name="159"></a><a href="#159" id="line159">     159</a> </span>                :      * @return string The innermost diagnostic context.                                                               
-<span class="lineNum" id="container160"><a name="160"></a><a href="#160" id="line160">     160</a> </span>                :      * @static                                                                                                        
-<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>                :     public static function peek(){                                                                                    
-<span class="lineNum" id="container163"><a name="163"></a><a href="#163" id="line163">     163</a> </span><span class="lineCov">              1 :         if(count(self::$stack) &gt; 0) {                                                                                 </span>
-<span class="lineNum" id="container164"><a name="164"></a><a href="#164" id="line164">     164</a> </span><span class="lineCov">              1 :             return end(self::$stack);                                                                                 </span>
-<span class="lineNum" id="container165"><a name="165"></a><a href="#165" id="line165">     165</a> </span><span class="lineDeadCode">                :         } else {                                                                                                      </span>
-<span class="lineNum" id="container166"><a name="166"></a><a href="#166" id="line166">     166</a> </span><span class="lineCov">              1 :             return '';                                                                                                </span>
-<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><span class="lineDeadCode">                :     }                                                                                                                 </span>
-<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>                :     /**                                                                                                               
-<span class="lineNum" id="container171"><a name="171"></a><a href="#171" id="line171">     171</a> </span>                :      * Push new diagnostic context information for the current thread.                                                
-<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>                :      * &lt;p&gt;The contents of the &lt;var&gt;message&lt;/var&gt; parameter is                                                         
-<span class="lineNum" id="container174"><a name="174"></a><a href="#174" id="line174">     174</a> </span>                :      * determined solely by the client.                                                                               
-<span class="lineNum" id="container175"><a name="175"></a><a href="#175" id="line175">     175</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container176"><a name="176"></a><a href="#176" id="line176">     176</a> </span>                :      * @param string $message The new diagnostic context information.                                                 
-<span class="lineNum" id="container177"><a name="177"></a><a href="#177" id="line177">     177</a> </span>                :      * @static                                                                                                        
+<span class="lineNum" id="container108"><a name="108"></a><a href="#108" id="line108">     108</a> </span>                :      */                                                                                                               
+<span class="lineNum" id="container109"><a name="109"></a><a href="#109" id="line109">     109</a> </span>                :     public static function clear() {                                                                                  
+<span class="lineNum" id="container110"><a name="110"></a><a href="#110" id="line110">     110</a> </span><span class="lineCov">              2 :         self::$stack = array();                                                                                       </span>
+<span class="lineNum" id="container111"><a name="111"></a><a href="#111" id="line111">     111</a> </span><span class="lineCov">              2 :     }                                                                                                                 </span>
+<span class="lineNum" id="container112"><a name="112"></a><a href="#112" id="line112">     112</a> </span>                :                                                                                                                       
+<span class="lineNum" id="container113"><a name="113"></a><a href="#113" id="line113">     113</a> </span>                :     /**                                                                                                               
+<span class="lineNum" id="container114"><a name="114"></a><a href="#114" id="line114">     114</a> </span>                :      * Never use this method directly, use the {@link LoggerLoggingEvent::getNDC()} method instead.                   
+<span class="lineNum" id="container115"><a name="115"></a><a href="#115" id="line115">     115</a> </span>                :      * @return array                                                                                                  
+<span class="lineNum" id="container116"><a name="116"></a><a href="#116" id="line116">     116</a> </span>                :      */                                                                                                               
+<span class="lineNum" id="container117"><a name="117"></a><a href="#117" id="line117">     117</a> </span>                :     public static function get() {                                                                                    
+<span class="lineNum" id="container118"><a name="118"></a><a href="#118" id="line118">     118</a> </span><span class="lineCov">             13 :         return implode(' ', self::$stack);                                                                            </span>
+<span class="lineNum" id="container119"><a name="119"></a><a href="#119" id="line119">     119</a> </span><span class="lineDeadCode">                :     }                                                                                                                 </span>
+<span class="lineNum" id="container120"><a name="120"></a><a href="#120" id="line120">     120</a> </span>                :                                                                                                                       
+<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>                :      * Get the current nesting depth of this diagnostic context.                                                      
+<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>                :      * @see setMaxDepth()                                                                                             
+<span class="lineNum" id="container125"><a name="125"></a><a href="#125" id="line125">     125</a> </span>                :      * @return integer                                                                                                
+<span class="lineNum" id="container126"><a name="126"></a><a href="#126" id="line126">     126</a> </span>                :      */                                                                                                               
+<span class="lineNum" id="container127"><a name="127"></a><a href="#127" id="line127">     127</a> </span>                :     public static function getDepth() {                                                                               
+<span class="lineNum" id="container128"><a name="128"></a><a href="#128" id="line128">     128</a> </span><span class="lineCov">              2 :         return count(self::$stack);                                                                                   </span>
+<span class="lineNum" id="container129"><a name="129"></a><a href="#129" id="line129">     129</a> </span><span class="lineDeadCode">                :     }                                                                                                                 </span>
+<span class="lineNum" id="container130"><a name="130"></a><a href="#130" id="line130">     130</a> </span>                :                                                                                                                       
+<span class="lineNum" id="container131"><a name="131"></a><a href="#131" id="line131">     131</a> </span>                :     /**                                                                                                               
+<span class="lineNum" id="container132"><a name="132"></a><a href="#132" id="line132">     132</a> </span>                :      * Clients should call this method before leaving a diagnostic                                                    
+<span class="lineNum" id="container133"><a name="133"></a><a href="#133" id="line133">     133</a> </span>                :      * context.                                                                                                       
+<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>                :      * &lt;p&gt;The returned value is the value that was pushed last. If no                                                 
+<span class="lineNum" id="container136"><a name="136"></a><a href="#136" id="line136">     136</a> </span>                :      * context is available, then the empty string &quot;&quot; is returned.&lt;/p&gt;                                                
+<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>                :      * @return string The innermost diagnostic context.                                                               
+<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>                :     public static function pop() {                                                                                    
+<span class="lineNum" id="container141"><a name="141"></a><a href="#141" id="line141">     141</a> </span><span class="lineCov">              1 :         if(count(self::$stack) &gt; 0) {                                                                                 </span>
+<span class="lineNum" id="container142"><a name="142"></a><a href="#142" id="line142">     142</a> </span><span class="lineCov">              1 :             return array_pop(self::$stack);                                                                           </span>
+<span class="lineNum" id="container143"><a name="143"></a><a href="#143" id="line143">     143</a> </span><span class="lineDeadCode">                :         } else {                                                                                                      </span>
+<span class="lineNum" id="container144"><a name="144"></a><a href="#144" id="line144">     144</a> </span><span class="lineCov">              1 :             return '';                                                                                                </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="lineDeadCode">                :     }                                                                                                                 </span>
+<span class="lineNum" id="container147"><a name="147"></a><a href="#147" id="line147">     147</a> </span>                :                                                                                                                       
+<span class="lineNum" id="container148"><a name="148"></a><a href="#148" id="line148">     148</a> </span>                :     /**                                                                                                               
+<span class="lineNum" id="container149"><a name="149"></a><a href="#149" id="line149">     149</a> </span>                :      * Looks at the last diagnostic context at the top of this NDC                                                    
+<span class="lineNum" id="container150"><a name="150"></a><a href="#150" id="line150">     150</a> </span>                :      * without removing it.                                                                                           
+<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>                :      * &lt;p&gt;The returned value is the value that was pushed last. If no                                                 
+<span class="lineNum" id="container153"><a name="153"></a><a href="#153" id="line153">     153</a> </span>                :      * context is available, then the empty string &quot;&quot; is returned.&lt;/p&gt;                                                
+<span class="lineNum" id="container154"><a name="154"></a><a href="#154" id="line154">     154</a> </span>                :      * @return string The innermost diagnostic context.                                                               
+<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>                :     public static function peek(){                                                                                    
+<span class="lineNum" id="container157"><a name="157"></a><a href="#157" id="line157">     157</a> </span><span class="lineCov">              1 :         if(count(self::$stack) &gt; 0) {                                                                                 </span>
+<span class="lineNum" id="container158"><a name="158"></a><a href="#158" id="line158">     158</a> </span><span class="lineCov">              1 :             return end(self::$stack);                                                                                 </span>
+<span class="lineNum" id="container159"><a name="159"></a><a href="#159" id="line159">     159</a> </span><span class="lineDeadCode">                :         } else {                                                                                                      </span>
+<span class="lineNum" id="container160"><a name="160"></a><a href="#160" id="line160">     160</a> </span><span class="lineCov">              1 :             return '';                                                                                                </span>
+<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="lineDeadCode">                :     }                                                                                                                 </span>
+<span class="lineNum" id="container163"><a name="163"></a><a href="#163" id="line163">     163</a> </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>                :      * Push new diagnostic context information for the current thread.                                                
+<span class="lineNum" id="container166"><a name="166"></a><a href="#166" id="line166">     166</a> </span>                :      *                                                                                                                
+<span class="lineNum" id="container167"><a name="167"></a><a href="#167" id="line167">     167</a> </span>                :      * &lt;p&gt;The contents of the &lt;var&gt;message&lt;/var&gt; parameter is                                                         
+<span class="lineNum" id="container168"><a name="168"></a><a href="#168" id="line168">     168</a> </span>                :      * determined solely by the client.                                                                               
+<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>                :      * @param string $message The new diagnostic context information.                                                 
+<span class="lineNum" id="container171"><a name="171"></a><a href="#171" id="line171">     171</a> </span>                :      */                                                                                                               
+<span class="lineNum" id="container172"><a name="172"></a><a href="#172" id="line172">     172</a> </span>                :     public static function push($message) {                                                                           
+<span class="lineNum" id="container173"><a name="173"></a><a href="#173" id="line173">     173</a> </span><span class="lineCov">              2 :         array_push(self::$stack, (string)$message);                                                                   </span>
+<span class="lineNum" id="container174"><a name="174"></a><a href="#174" id="line174">     174</a> </span><span class="lineCov">              2 :     }                                                                                                                 </span>
+<span class="lineNum" id="container175"><a name="175"></a><a href="#175" id="line175">     175</a> </span>                :                                                                                                                       
+<span class="lineNum" id="container176"><a name="176"></a><a href="#176" id="line176">     176</a> </span>                :     /**                                                                                                               
+<span class="lineNum" id="container177"><a name="177"></a><a href="#177" id="line177">     177</a> </span>                :      * Remove the diagnostic context for this thread.                                                                 
 <span class="lineNum" id="container178"><a name="178"></a><a href="#178" id="line178">     178</a> </span>                :      */                                                                                                               
-<span class="lineNum" id="container179"><a name="179"></a><a href="#179" id="line179">     179</a> </span>                :     public static function push($message) {                                                                           
-<span class="lineNum" id="container180"><a name="180"></a><a href="#180" id="line180">     180</a> </span><span class="lineCov">              2 :         array_push(self::$stack, (string)$message);                                                                   </span>
-<span class="lineNum" id="container181"><a name="181"></a><a href="#181" id="line181">     181</a> </span><span class="lineCov">              2 :     }                                                                                                                 </span>
+<span class="lineNum" id="container179"><a name="179"></a><a href="#179" id="line179">     179</a> </span>                :     public static function remove() {                                                                                 
+<span class="lineNum" id="container180"><a name="180"></a><a href="#180" id="line180">     180</a> </span><span class="lineCov">              1 :         LoggerNDC::clear();                                                                                           </span>
+<span class="lineNum" id="container181"><a name="181"></a><a href="#181" id="line181">     181</a> </span><span class="lineCov">              1 :     }                                                                                                                 </span>
 <span class="lineNum" id="container182"><a name="182"></a><a href="#182" id="line182">     182</a> </span>                :                                                                                                                       
 <span class="lineNum" id="container183"><a name="183"></a><a href="#183" id="line183">     183</a> </span>                :     /**                                                                                                               
-<span class="lineNum" id="container184"><a name="184"></a><a href="#184" id="line184">     184</a> </span>                :      * Remove the diagnostic context for this thread.                                                                 
-<span class="lineNum" id="container185"><a name="185"></a><a href="#185" id="line185">     185</a> </span>                :      * @static                                                                                                        
-<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>                :     public static function remove() {                                                                                 
-<span class="lineNum" id="container188"><a name="188"></a><a href="#188" id="line188">     188</a> </span><span class="lineCov">              1 :         LoggerNDC::clear();                                                                                           </span>
-<span class="lineNum" id="container189"><a name="189"></a><a href="#189" id="line189">     189</a> </span><span class="lineCov">              1 :     }                                                                                                                 </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>                :     /**                                                                                                               
-<span class="lineNum" id="container192"><a name="192"></a><a href="#192" id="line192">     192</a> </span>                :      * Set maximum depth of this diagnostic context. If the current                                                   
-<span class="lineNum" id="container193"><a name="193"></a><a href="#193" id="line193">     193</a> </span>                :      * depth is smaller or equal to &lt;var&gt;maxDepth&lt;/var&gt;, then no                                                      
-<span class="lineNum" id="container194"><a name="194"></a><a href="#194" id="line194">     194</a> </span>                :      * action is taken.                                                                                               
-<span class="lineNum" id="container195"><a name="195"></a><a href="#195" id="line195">     195</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container196"><a name="196"></a><a href="#196" id="line196">     196</a> </span>                :      * &lt;p&gt;This method is a convenient alternative to multiple                                                         
-<span class="lineNum" id="container197"><a name="197"></a><a href="#197" id="line197">     197</a> </span>                :      * {@link pop()} calls. Moreover, it is often the case that at                                                    
-<span class="lineNum" id="container198"><a name="198"></a><a href="#198" id="line198">     198</a> </span>                :      * the end of complex call sequences, the depth of the NDC is                                                     
-<span class="lineNum" id="container199"><a name="199"></a><a href="#199" id="line199">     199</a> </span>                :      * unpredictable. The {@link setMaxDepth()} method circumvents                                                    
-<span class="lineNum" id="container200"><a name="200"></a><a href="#200" id="line200">     200</a> </span>                :      * this problem.                                                                                                  
-<span class="lineNum" id="container201"><a name="201"></a><a href="#201" id="line201">     201</a> </span>                :      *                                                                                                                
-<span class="lineNum" id="container202"><a name="202"></a><a href="#202" id="line202">     202</a> </span>                :      * @param integer $maxDepth                                                                                       
-<span class="lineNum" id="container203"><a name="203"></a><a href="#203" id="line203">     203</a> </span>                :      * @see getDepth()                                                                                                
-<span class="lineNum" id="container204"><a name="204"></a><a href="#204" id="line204">     204</a> </span>                :      * @static                                                                                                        
-<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>                :     public static function setMaxDepth($maxDepth) {                                                                   
-<span class="lineNum" id="container207"><a name="207"></a><a href="#207" id="line207">     207</a> </span><span class="lineCov">              1 :         $maxDepth = (int)$maxDepth;                                                                                   </span>
-<span class="lineNum" id="container208"><a name="208"></a><a href="#208" id="line208">     208</a> </span><span class="lineCov">              1 :         if(LoggerNDC::getDepth() &gt; $maxDepth) {                                                                       </span>
-<span class="lineNum" id="container209"><a name="209"></a><a href="#209" id="line209">     209</a> </span><span class="lineCov">              1 :             self::$stack = array_slice(self::$stack, 0, $maxDepth);                                                   </span>
-<span class="lineNum" id="container210"><a name="210"></a><a href="#210" id="line210">     210</a> </span><span class="lineCov">              1 :         }                                                                                                             </span>
-<span class="lineNum" id="container211"><a name="211"></a><a href="#211" id="line211">     211</a> </span><span class="lineCov">              1 :     }                                                                                                                 </span>
-<span class="lineNum" id="container212"><a name="212"></a><a href="#212" id="line212">     212</a> </span>                : }                                                                                                                     
+<span class="lineNum" id="container184"><a name="184"></a><a href="#184" id="line184">     184</a> </span>                :      * Set maximum depth of this diagnostic context. If the current                                                   
+<span class="lineNum" id="container185"><a name="185"></a><a href="#185" id="line185">     185</a> </span>                :      * depth is smaller or equal to &lt;var&gt;maxDepth&lt;/var&gt;, then no                                                      
+<span class="lineNum" id="container186"><a name="186"></a><a href="#186" id="line186">     186</a> </span>                :      * action is taken.                                                                                               
+<span class="lineNum" id="container187"><a name="187"></a><a href="#187" id="line187">     187</a> </span>                :      *                                                                                                                
+<span class="lineNum" id="container188"><a name="188"></a><a href="#188" id="line188">     188</a> </span>                :      * &lt;p&gt;This method is a convenient alternative to multiple                                                         
+<span class="lineNum" id="container189"><a name="189"></a><a href="#189" id="line189">     189</a> </span>                :      * {@link pop()} calls. Moreover, it is often the case that at                                                    
+<span class="lineNum" id="container190"><a name="190"></a><a href="#190" id="line190">     190</a> </span>                :      * the end of complex call sequences, the depth of the NDC is                                                     
+<span class="lineNum" id="container191"><a name="191"></a><a href="#191" id="line191">     191</a> </span>                :      * unpredictable. The {@link setMaxDepth()} method circumvents                                                    
+<span class="lineNum" id="container192"><a name="192"></a><a href="#192" id="line192">     192</a> </span>                :      * this problem.                                                                                                  
+<span class="lineNum" id="container193"><a name="193"></a><a href="#193" id="line193">     193</a> </span>                :      *                                                                                                                
+<span class="lineNum" id="container194"><a name="194"></a><a href="#194" id="line194">     194</a> </span>                :      * @param integer $maxDepth                                                                                       
+<span class="lineNum" id="container195"><a name="195"></a><a href="#195" id="line195">     195</a> </span>                :      * @see getDepth()                                                                                                
+<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>                :     public static function setMaxDepth($maxDepth) {                                                                   
+<span class="lineNum" id="container198"><a name="198"></a><a href="#198" id="line198">     198</a> </span><span class="lineCov">              1 :         $maxDepth = (int)$maxDepth;                                                                                   </span>
+<span class="lineNum" id="container199"><a name="199"></a><a href="#199" id="line199">     199</a> </span><span class="lineCov">              1 :         if(LoggerNDC::getDepth() &gt; $maxDepth) {                                                                       </span>
+<span class="lineNum" id="container200"><a name="200"></a><a href="#200" id="line200">     200</a> </span><span class="lineCov">              1 :             self::$stack = array_slice(self::$stack, 0, $maxDepth);                                                   </span>
+<span class="lineNum" id="container201"><a name="201"></a><a href="#201" id="line201">     201</a> </span><span class="lineCov">              1 :         }                                                                                                             </span>
+<span class="lineNum" id="container202"><a name="202"></a><a href="#202" id="line202">     202</a> </span><span class="lineCov">              1 :     }                                                                                                                 </span>
+<span class="lineNum" id="container203"><a name="203"></a><a href="#203" id="line203">     203</a> </span>                : }                                                                                                                     
 
 </pre>
         </td>
@@ -537,7 +528,7 @@
 
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr><td class="ruler"><img src="glass.png" width="3" height="3" alt=""></td></tr>
-      <tr><td class="versionInfo">Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.0.4</a> using <a href="http://www.php.net/" target="_top">PHP 5.3.6</a> and PHPUnit 3.5.14 at Tue Aug 30 13:23:52 BST 2011.</td></tr>
+      <tr><td class="versionInfo">Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.0.5</a> using <a href="http://www.php.net/" target="_top">PHP 5.3.3</a> and PHPUnit 3.5.15 at Fri Oct 7 19:06:00 BST 2011.</td></tr>
     </table>
 
     <br />
@@ -552,98 +543,98 @@
           "body": "<ul><li class=\"testPassed\">LoggerAppenderSocketTest::testSocketXml</li></ul>",
           "footer": ""
         },
-        "panel112": {
-          "header": "2 tests cover line 112",
+        "panel110": {
+          "header": "2 tests cover line 110",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel113": {
-          "header": "2 tests cover line 113",
+        "panel111": {
+          "header": "2 tests cover line 111",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel121": {
-          "header": "13 tests cover line 121",
+        "panel118": {
+          "header": "13 tests cover line 118",
           "body": "<ul><li class=\"testPassed\">LoggerAppenderSocketTest::testSocketXml</li><li class=\"testPassed\">LoggerConfiguratorBasicTest::testConfigure</li><li class=\"testPassed\">LoggerConfiguratorIniTest::testSeveralLoggers</li><li class=\"testPassed\">LoggerLayoutHtmlTest::testErrorLayout</li><li class=\"testPassed\">LoggerLayoutHtmlTest::testWarnLayout</li><li class=\"testPassed\">LoggerLayoutTTCCTest::testErrorLayout</li><li class=\"testPassed\">LoggerLayoutTTCCTest::testWarnLayout</li><li class=\"testPassed\">LoggerLayoutXmlTest::testErrorLayout</li><li class=\"testPassed\">LoggerLayoutXmlTest::testWarnLayout</li><li class=\"testPassed\">LoggerLayoutXmlTest::testLog4JNamespaceErrorLayout</li><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li><li class=\"testPassed\">LoggerTest::testLoggerExist</li></ul>",
           "footer": ""
         },
-        "panel132": {
-          "header": "2 tests cover line 132",
+        "panel128": {
+          "header": "2 tests cover line 128",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel146": {
-          "header": "1 test covers line 146",
+        "panel141": {
+          "header": "1 test covers line 141",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel147": {
-          "header": "1 test covers line 147",
+        "panel142": {
+          "header": "1 test covers line 142",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel149": {
-          "header": "1 test covers line 149",
+        "panel144": {
+          "header": "1 test covers line 144",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel163": {
-          "header": "1 test covers line 163",
+        "panel157": {
+          "header": "1 test covers line 157",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel164": {
-          "header": "1 test covers line 164",
+        "panel158": {
+          "header": "1 test covers line 158",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel166": {
-          "header": "1 test covers line 166",
+        "panel160": {
+          "header": "1 test covers line 160",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel180": {
-          "header": "2 tests cover line 180",
+        "panel173": {
+          "header": "2 tests cover line 173",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel181": {
-          "header": "2 tests cover line 181",
+        "panel174": {
+          "header": "2 tests cover line 174",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel188": {
-          "header": "1 test covers line 188",
+        "panel180": {
+          "header": "1 test covers line 180",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel189": {
-          "header": "1 test covers line 189",
+        "panel181": {
+          "header": "1 test covers line 181",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testItemHandling</li></ul>",
           "footer": ""
         },
-        "panel207": {
-          "header": "1 test covers line 207",
+        "panel198": {
+          "header": "1 test covers line 198",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel208": {
-          "header": "1 test covers line 208",
+        "panel199": {
+          "header": "1 test covers line 199",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel209": {
-          "header": "1 test covers line 209",
+        "panel200": {
+          "header": "1 test covers line 200",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel210": {
-          "header": "1 test covers line 210",
+        "panel201": {
+          "header": "1 test covers line 201",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },
-        "panel211": {
-          "header": "1 test covers line 211",
+        "panel202": {
+          "header": "1 test covers line 202",
           "body": "<ul><li class=\"testPassed\">LoggerNDCTest::testMaxDepth</li></ul>",
           "footer": ""
         },



Mime
View raw message