logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1180134 [15/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/LoggerMDC.php.html
URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4php/coverage-report/LoggerMDC.php.html?rev=1180134&r1=1180133&r2=1180134&view=diff
==============================================================================
--- logging/site/trunk/docs/log4php/coverage-report/LoggerMDC.php.html (original)
+++ logging/site/trunk/docs/log4php/coverage-report/LoggerMDC.php.html Fri Oct  7 18:26:07
2011
@@ -121,7 +121,7 @@
         </tr>
 
         <tr>
-          <td class="coverFile" colspan="4">&nbsp;<a href="#72">put($key,
$value)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#71">put($key,
$value)</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="#90">get($key)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#88">get($key)</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="#114">remove($key)</a></td>
+          <td class="coverFile" colspan="4">&nbsp;<a href="#111">remove($key)</a></td>
           <td class="coverBar" align="center" width="100">
             <table border="0" cellspacing="0" cellpadding="1">
               <tr>
@@ -249,7 +249,7 @@
 <span class="lineNum" id="container45"><a name="45"></a><a href="#45"
id="line45">      45</a> </span>                :  * 2009-09-13 18:48:28 DEBUG
root knut: Testing MDC in src/examples/php/mdc.php at 23    
 <span class="lineNum" id="container46"><a name="46"></a><a href="#46"
id="line46">      46</a> </span>                :  * &lt;/pre&gt; 
                                                                              
 <span class="lineNum" id="container47"><a name="47"></a><a href="#47"
id="line47">      47</a> </span>                :  *                      
                                                                
-<span class="lineNum" id="container48"><a name="48"></a><a href="#48"
id="line48">      48</a> </span>                :  * @version $Revision: 998444
$                                                          
+<span class="lineNum" id="container48"><a name="48"></a><a href="#48"
id="line48">      48</a> </span>                :  * @version $Revision: 1166187
$                                                         
 <span class="lineNum" id="container49"><a name="49"></a><a href="#49"
id="line49">      49</a> </span>                :  * @since 0.3           
                                                                
 <span class="lineNum" id="container50"><a name="50"></a><a href="#50"
id="line50">      50</a> </span>                :  * @package log4php     
                                                                
 <span class="lineNum" id="container51"><a name="51"></a><a href="#51"
id="line51">      51</a> </span>                :  */                     
                                                                
@@ -271,54 +271,51 @@
 <span class="lineNum" id="container67"><a name="67"></a><a href="#67"
id="line67">      67</a> </span>                :      *                  
                                                                
 <span class="lineNum" id="container68"><a name="68"></a><a href="#68"
id="line68">      68</a> </span>                :      * @param string $key
the key                                                        
 <span class="lineNum" id="container69"><a name="69"></a><a href="#69"
id="line69">      69</a> </span>                :      * @param string $value
the value                                                    
-<span class="lineNum" id="container70"><a name="70"></a><a href="#70"
id="line70">      70</a> </span>                :      * @static          
                                                                
-<span class="lineNum" id="container71"><a name="71"></a><a href="#71"
id="line71">      71</a> </span>                :      */                 
                                                                
-<span class="lineNum" id="container72"><a name="72"></a><a href="#72"
id="line72">      72</a> </span>                :     public static function
put($key, $value) {                                           
-<span class="lineNum" id="container73"><a name="73"></a><a href="#73"
id="line73">      73</a> </span><span class="lineCov">              1
:         self::$map[$key] = $value;                                                     
 </span>
-<span class="lineNum" id="container74"><a name="74"></a><a href="#74"
id="line74">      74</a> </span><span class="lineCov">              1
:     }                                                                                  
 </span>
-<span class="lineNum" id="container75"><a name="75"></a><a href="#75"
id="line75">      75</a> </span>                :                         
                                                                
-<span class="lineNum" id="container76"><a name="76"></a><a href="#76"
id="line76">      76</a> </span>                :     /**                 
                                                                
-<span class="lineNum" id="container77"><a name="77"></a><a href="#77"
id="line77">      77</a> </span>                :      * Get the context identified
by the key parameter.                                  
-<span class="lineNum" id="container78"><a name="78"></a><a href="#78"
id="line78">      78</a> </span>                :      *                  
                                                                
-<span class="lineNum" id="container79"><a name="79"></a><a href="#79"
id="line79">      79</a> </span>                :      * &lt;p&gt;You
can use special key identifiers to map values in                           
-<span class="lineNum" id="container80"><a name="80"></a><a href="#80"
id="line80">      80</a> </span>                :      * PHP $_SERVER and $_ENV
vars. Just put a 'server.' or 'env.'                       
-<span class="lineNum" id="container81"><a name="81"></a><a href="#81"
id="line81">      81</a> </span>                :      * followed by the var
name you want to refer.&lt;/p&gt;                                   
-<span class="lineNum" id="container82"><a name="82"></a><a href="#82"
id="line82">      82</a> </span>                :      *                  
                                                                
-<span class="lineNum" id="container83"><a name="83"></a><a href="#83"
id="line83">      83</a> </span>                :      * &lt;p&gt;This
method has no side effects.&lt;/p&gt;                                           
-<span class="lineNum" id="container84"><a name="84"></a><a href="#84"
id="line84">      84</a> </span>                :      *                  
                                                                
-<span class="lineNum" id="container85"><a name="85"></a><a href="#85"
id="line85">      85</a> </span>                :      * @param string $key
the key                                                        
-<span class="lineNum" id="container86"><a name="86"></a><a href="#86"
id="line86">      86</a> </span>                :      * @return string the
context or an empty string if no context found                 
-<span class="lineNum" id="container87"><a name="87"></a><a href="#87"
id="line87">      87</a> </span>                :      *     for given key
                                                                
-<span class="lineNum" id="container88"><a name="88"></a><a href="#88"
id="line88">      88</a> </span>                :      * @static          
                                                                
-<span class="lineNum" id="container89"><a name="89"></a><a href="#89"
id="line89">      89</a> </span>                :      */                 
                                                                
-<span class="lineNum" id="container90"><a name="90"></a><a href="#90"
id="line90">      90</a> </span>                :     public static function
get($key) {                                                   
-<span class="lineNum" id="container91"><a name="91"></a><a href="#91"
id="line91">      91</a> </span><span class="lineCov">              3
:         if(!empty($key)) {                                                             
 </span>
-<span class="lineNum" id="container92"><a name="92"></a><a href="#92"
id="line92">      92</a> </span><span class="lineCov">              3
:             if(strpos($key, 'server.') === 0) {                                        
 </span>
-<span class="lineNum" id="container93"><a name="93"></a><a href="#93"
id="line93">      93</a> </span><span class="lineCov">              1
:                 $varName = substr($key, 7);                                            
 </span>
-<span class="lineNum" id="container94"><a name="94"></a><a href="#94"
id="line94">      94</a> </span><span class="lineCov">              1
:                 return isset($_SERVER[$varName]) ? $_SERVER[$varName] : '';            
 </span>
-<span class="lineNum" id="container95"><a name="95"></a><a href="#95"
id="line95">      95</a> </span><span class="lineCov">              2
:             } else if(strpos($key, 'env.') === 0) {                                    
 </span>
-<span class="lineNum" id="container96"><a name="96"></a><a href="#96"
id="line96">      96</a> </span><span class="lineCov">              1
:                 $varName = substr($key, 4);                                            
 </span>
-<span class="lineNum" id="container97"><a name="97"></a><a href="#97"
id="line97">      97</a> </span><span class="lineCov">              1
:                 $value = getenv($varName);                                             
 </span>
-<span class="lineNum" id="container98"><a name="98"></a><a href="#98"
id="line98">      98</a> </span><span class="lineCov">              1
:                 return ($value !== false) ? $value : '';                               
 </span>
-<span class="lineNum" id="container99"><a name="99"></a><a href="#99"
id="line99">      99</a> </span><span class="lineDeadCode">         
      :             } else {                                                             
       </span>
-<span class="lineNum" id="container100"><a name="100"></a><a href="#100"
id="line100">     100</a> </span><span class="lineCov">             
1 :                 return isset(self::$map[$key]) ? self::$map[$key] : '';              
   </span>
-<span class="lineNum" id="container101"><a name="101"></a><a href="#101"
id="line101">     101</a> </span>                :             }          
                                                                 
-<span class="lineNum" id="container102"><a name="102"></a><a href="#102"
id="line102">     102</a> </span><span class="lineDeadCode">        
       :         }                                                                       
        </span>
-<span class="lineNum" id="container103"><a name="103"></a><a href="#103"
id="line103">     103</a> </span><span class="lineCov">             
1 :         return '';                                                                   
   </span>
-<span class="lineNum" id="container104"><a name="104"></a><a href="#104"
id="line104">     104</a> </span><span class="lineDeadCode">        
       :     }                                                                           
        </span>
-<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>                :     /**                
                                                                 
-<span class="lineNum" id="container107"><a name="107"></a><a href="#107"
id="line107">     107</a> </span>                :      * Remove the the context
identified by the key parameter.                           
+<span class="lineNum" id="container70"><a name="70"></a><a href="#70"
id="line70">      70</a> </span>                :      */                 
                                                                
+<span class="lineNum" id="container71"><a name="71"></a><a href="#71"
id="line71">      71</a> </span>                :     public static function
put($key, $value) {                                           
+<span class="lineNum" id="container72"><a name="72"></a><a href="#72"
id="line72">      72</a> </span><span class="lineCov">              1
:         self::$map[$key] = $value;                                                     
 </span>
+<span class="lineNum" id="container73"><a name="73"></a><a href="#73"
id="line73">      73</a> </span><span class="lineCov">              1
:     }                                                                                  
 </span>
+<span class="lineNum" id="container74"><a name="74"></a><a href="#74"
id="line74">      74</a> </span>                :                         
                                                                
+<span class="lineNum" id="container75"><a name="75"></a><a href="#75"
id="line75">      75</a> </span>                :     /**                 
                                                                
+<span class="lineNum" id="container76"><a name="76"></a><a href="#76"
id="line76">      76</a> </span>                :      * Get the context identified
by the key parameter.                                  
+<span class="lineNum" id="container77"><a name="77"></a><a href="#77"
id="line77">      77</a> </span>                :      *                  
                                                                
+<span class="lineNum" id="container78"><a name="78"></a><a href="#78"
id="line78">      78</a> </span>                :      * &lt;p&gt;You
can use special key identifiers to map values in                           
+<span class="lineNum" id="container79"><a name="79"></a><a href="#79"
id="line79">      79</a> </span>                :      * PHP $_SERVER and $_ENV
vars. Just put a 'server.' or 'env.'                       
+<span class="lineNum" id="container80"><a name="80"></a><a href="#80"
id="line80">      80</a> </span>                :      * followed by the var
name you want to refer.&lt;/p&gt;                                   
+<span class="lineNum" id="container81"><a name="81"></a><a href="#81"
id="line81">      81</a> </span>                :      *                  
                                                                
+<span class="lineNum" id="container82"><a name="82"></a><a href="#82"
id="line82">      82</a> </span>                :      * &lt;p&gt;This
method has no side effects.&lt;/p&gt;                                           
+<span class="lineNum" id="container83"><a name="83"></a><a href="#83"
id="line83">      83</a> </span>                :      *                  
                                                                
+<span class="lineNum" id="container84"><a name="84"></a><a href="#84"
id="line84">      84</a> </span>                :      * @param string $key
the key                                                        
+<span class="lineNum" id="container85"><a name="85"></a><a href="#85"
id="line85">      85</a> </span>                :      * @return string the
context or an empty string if no context found                 
+<span class="lineNum" id="container86"><a name="86"></a><a href="#86"
id="line86">      86</a> </span>                :      *     for given key
                                                                
+<span class="lineNum" id="container87"><a name="87"></a><a href="#87"
id="line87">      87</a> </span>                :      */                 
                                                                
+<span class="lineNum" id="container88"><a name="88"></a><a href="#88"
id="line88">      88</a> </span>                :     public static function
get($key) {                                                   
+<span class="lineNum" id="container89"><a name="89"></a><a href="#89"
id="line89">      89</a> </span><span class="lineCov">              3
:         if(!empty($key)) {                                                             
 </span>
+<span class="lineNum" id="container90"><a name="90"></a><a href="#90"
id="line90">      90</a> </span><span class="lineCov">              3
:             if(strpos($key, 'server.') === 0) {                                        
 </span>
+<span class="lineNum" id="container91"><a name="91"></a><a href="#91"
id="line91">      91</a> </span><span class="lineCov">              1
:                 $varName = substr($key, 7);                                            
 </span>
+<span class="lineNum" id="container92"><a name="92"></a><a href="#92"
id="line92">      92</a> </span><span class="lineCov">              1
:                 return isset($_SERVER[$varName]) ? $_SERVER[$varName] : '';            
 </span>
+<span class="lineNum" id="container93"><a name="93"></a><a href="#93"
id="line93">      93</a> </span><span class="lineCov">              2
:             } else if(strpos($key, 'env.') === 0) {                                    
 </span>
+<span class="lineNum" id="container94"><a name="94"></a><a href="#94"
id="line94">      94</a> </span><span class="lineCov">              1
:                 $varName = substr($key, 4);                                            
 </span>
+<span class="lineNum" id="container95"><a name="95"></a><a href="#95"
id="line95">      95</a> </span><span class="lineCov">              1
:                 $value = getenv($varName);                                             
 </span>
+<span class="lineNum" id="container96"><a name="96"></a><a href="#96"
id="line96">      96</a> </span><span class="lineCov">              1
:                 return ($value !== false) ? $value : '';                               
 </span>
+<span class="lineNum" id="container97"><a name="97"></a><a href="#97"
id="line97">      97</a> </span><span class="lineDeadCode">         
      :             } else {                                                             
       </span>
+<span class="lineNum" id="container98"><a name="98"></a><a href="#98"
id="line98">      98</a> </span><span class="lineCov">              1
:                 return isset(self::$map[$key]) ? self::$map[$key] : '';                
 </span>
+<span class="lineNum" id="container99"><a name="99"></a><a href="#99"
id="line99">      99</a> </span>                :             }           
                                                                
+<span class="lineNum" id="container100"><a name="100"></a><a href="#100"
id="line100">     100</a> </span><span class="lineDeadCode">        
       :         }                                                                       
        </span>
+<span class="lineNum" id="container101"><a name="101"></a><a href="#101"
id="line101">     101</a> </span><span class="lineCov">             
1 :         return '';                                                                   
   </span>
+<span class="lineNum" id="container102"><a name="102"></a><a href="#102"
id="line102">     102</a> </span><span class="lineDeadCode">        
       :     }                                                                           
        </span>
+<span class="lineNum" id="container103"><a name="103"></a><a href="#103"
id="line103">     103</a> </span>                :                        
                                                                 
+<span class="lineNum" id="container104"><a name="104"></a><a href="#104"
id="line104">     104</a> </span>                :     /**                
                                                                 
+<span class="lineNum" id="container105"><a name="105"></a><a href="#105"
id="line105">     105</a> </span>                :      * Remove the the context
identified by the key parameter.                           
+<span class="lineNum" id="container106"><a name="106"></a><a href="#106"
id="line106">     106</a> </span>                :      *                 
                                                                 
+<span class="lineNum" id="container107"><a name="107"></a><a href="#107"
id="line107">     107</a> </span>                :      * It only affects user
mappings, not $_ENV or $_SERVER.                             
 <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>                :      * It only affects user
mappings, not $_ENV or $_SERVER.                             
-<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>                :      * @param string $key
the key to be removed                                          
-<span class="lineNum" id="container112"><a name="112"></a><a href="#112"
id="line112">     112</a> </span>                :      * @static         
                                                                 
-<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>                :     public static function
remove($key) {                                                
-<span class="lineNum" id="container115"><a name="115"></a><a href="#115"
id="line115">     115</a> </span><span class="lineCov">             
1 :         unset(self::$map[$key]);                                                     
   </span>
-<span class="lineNum" id="container116"><a name="116"></a><a href="#116"
id="line116">     116</a> </span><span class="lineCov">             
1 :     }                                                                                
   </span>
-<span class="lineNum" id="container117"><a name="117"></a><a href="#117"
id="line117">     117</a> </span>                : }                      
                                                                 
+<span class="lineNum" id="container109"><a name="109"></a><a href="#109"
id="line109">     109</a> </span>                :      * @param string $key
the key to be removed                                          
+<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
remove($key) {                                                
+<span class="lineNum" id="container112"><a name="112"></a><a href="#112"
id="line112">     112</a> </span><span class="lineCov">             
1 :         unset(self::$map[$key]);                                                     
   </span>
+<span class="lineNum" id="container113"><a name="113"></a><a href="#113"
id="line113">     113</a> </span><span class="lineCov">             
1 :     }                                                                                
   </span>
+<span class="lineNum" id="container114"><a name="114"></a><a href="#114"
id="line114">     114</a> </span>                : }                      
                                                                 
 
 </pre>
         </td>
@@ -327,7 +324,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 />
@@ -342,73 +339,73 @@
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel73": {
-          "header": "1 test covers line 73",
+        "panel72": {
+          "header": "1 test covers line 72",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel74": {
-          "header": "1 test covers line 74",
+        "panel73": {
+          "header": "1 test covers line 73",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel91": {
-          "header": "3 tests cover line 91",
+        "panel89": {
+          "header": "3 tests cover line 89",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li><li
class=\"testPassed\">LoggerMDCTest::testEnvKey</li><li class=\"testPassed\">LoggerMDCTest::testServerKey</li></ul>",
           "footer": ""
         },
-        "panel92": {
-          "header": "3 tests cover line 92",
+        "panel90": {
+          "header": "3 tests cover line 90",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li><li
class=\"testPassed\">LoggerMDCTest::testEnvKey</li><li class=\"testPassed\">LoggerMDCTest::testServerKey</li></ul>",
           "footer": ""
         },
-        "panel93": {
-          "header": "1 test covers line 93",
+        "panel91": {
+          "header": "1 test covers line 91",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testServerKey</li></ul>",
           "footer": ""
         },
-        "panel94": {
-          "header": "1 test covers line 94",
+        "panel92": {
+          "header": "1 test covers line 92",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testServerKey</li></ul>",
           "footer": ""
         },
-        "panel95": {
-          "header": "2 tests cover line 95",
+        "panel93": {
+          "header": "2 tests cover line 93",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li><li
class=\"testPassed\">LoggerMDCTest::testEnvKey</li></ul>",
           "footer": ""
         },
-        "panel96": {
-          "header": "1 test covers line 96",
+        "panel94": {
+          "header": "1 test covers line 94",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testEnvKey</li></ul>",
           "footer": ""
         },
-        "panel97": {
-          "header": "1 test covers line 97",
+        "panel95": {
+          "header": "1 test covers line 95",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testEnvKey</li></ul>",
           "footer": ""
         },
-        "panel98": {
-          "header": "1 test covers line 98",
+        "panel96": {
+          "header": "1 test covers line 96",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testEnvKey</li></ul>",
           "footer": ""
         },
-        "panel100": {
-          "header": "1 test covers line 100",
+        "panel98": {
+          "header": "1 test covers line 98",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel103": {
-          "header": "1 test covers line 103",
+        "panel101": {
+          "header": "1 test covers line 101",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel115": {
-          "header": "1 test covers line 115",
+        "panel112": {
+          "header": "1 test covers line 112",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },
-        "panel116": {
-          "header": "1 test covers line 116",
+        "panel113": {
+          "header": "1 test covers line 113",
           "body": "<ul><li class=\"testPassed\">LoggerMDCTest::testPatterns</li></ul>",
           "footer": ""
         },



Mime
View raw message