Added: incubator/log4php/site/usage.html
URL: 
http://svn.apache.org/viewvc/incubator/log4php/site/usage.html?view=auto&rev=558223
==============================================================================
--- incubator/log4php/site/usage.html (added)
+++ incubator/log4php/site/usage.html Fri Jul 20 19:10:17 2007
@@ -0,0 +1,328 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>log4php - 
+        Log4php Usage Example</title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" 
media="print" />
+          <meta name="author" content="
+        Marco Vassura" />
+        <meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1" />
+      </head>
+  <body class="composite">
+    <div id="banner">
+                  <a href="http://logging.apache.org/"; id="bannerLeft">
+    
+                                            <img src="images/ls-logo.jpg" 
alt="" />
+    
+            </a>
+                    <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+          
+  
+
+  
+    
+  
+  
+            <div class="xleft">
+        Last Published: 07/20/2007
+                          |   
+          <a href="http://www.apache.org/";>Apache</a>
+              &gt;
+      
+          <a href="http://incubator.apache.org/";>Incubator</a>
+              &gt;
+      
+          log4php
+                        </div>
+            <div class="xright">      
+  
+
+  
+    
+  
+  
+  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+           
+  
+
+  
+    
+  
+  
+                   <h5>Get log4php</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="download.html">Download</a>
+        </li>
+              
+    <li class="none">
+              <a href="changes-report.html">Changes</a>
+        </li>
+              
+    <li class="none">
+              <a href="license.html">License</a>
+        </li>
+          </ul>
+          <h5>About log4php</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="index.html">What is it?</a>
+        </li>
+              
+    <li class="none">
+              <a href="qsg.html">Quick start</a>
+        </li>
+              
+    <li class="none">
+              <strong>Usage</strong>
+        </li>
+              
+    <li class="none">
+              <a href="roadmap.html">Roadmap</a>
+        </li>
+              
+    <li class="none">
+              <a href="apidocs/index.html">PHPDoc</a>
+        </li>
+          </ul>
+          <h5>Community</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="mail-lists.html">Mailing Lists</a>
+        </li>
+              
+    <li class="none">
+              <a href="issue-tracking.html">Issue Tracking</a>
+        </li>
+          </ul>
+          <h5>Development</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="source-repository.html">Repository</a>
+        </li>
+          </ul>
+          <h5>Apache</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="http://www.apache.org";>Home</a>
+        </li>
+              
+    <li class="none">
+              <a 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a>
+        </li>
+              
+    <li class="none">
+              <a href="http://www.apache.org/foundation/thanks.html";>Thanks</a>
+        </li>
+              
+    <li class="none">
+              <a href="http://www.apachecon.com";>Conferences</a>
+        </li>
+          </ul>
+                                       <a href="http://maven.apache.org/"; 
title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" 
src="./images/logos/maven-feather.png"></img>
+          </a>
+                       
+  
+
+  
+    
+  
+  
+        </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        
+    
+    <meta name="keywords" content="php, java, logging, tracing, component, 
framework, API, log4php"></meta>
+    
+        <a name="Log4php Usage Example"></a><div class="section"><h2>Log4php 
Usage Example</h2>
+            <code>&lt;font color=&quot;#000000&quot;&gt;
+                    &lt;font color=&quot;#0000BB&quot;&gt;&amp;lt;?php 
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#FF8000&quot;&gt;/**
+                    &lt;br /&gt; * This is a log4php usage example file
+                    &lt;br /&gt; *
+                    &lt;br /&gt; * @version $Revision: 312325 $
+                    &lt;br /&gt; * @author Marco V. &amp;lt;[EMAIL 
PROTECTED]&amp;gt;
+                    &lt;br /&gt; */
+                    &lt;br /&gt;
+                    &lt;br /&gt;/**
+                    &lt;br /&gt; * Set LOG4PHP_DIR to Your log4php root dir or 
it will
+                    &lt;br /&gt; * be set automatically at the first 
require_once().
+                    &lt;br /&gt; * Here 'log4php' is an 'include_path' subdir.
+                    &lt;br /&gt; */
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;define&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'LOG4PHP_DIR'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;, &lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'log4php'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#FF8000&quot;&gt;/*
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.&amp;nbsp;&amp;nbsp;If you want 
to use a custom Configurator,
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set
 the LOG4PHP_CONFIGURATOR_CLASS constants to Your Configurator class file.
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The
 class name must have the same base name of the classfile.
+                    &lt;br /&gt;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ex:
 define('LOG4PHP_CONFIGURATOR_CLASS', '/my/path/LoggerMyConfigurator');
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Log4php
 will try to include '/my/path/LoggerMyConfigurator.php'
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and
 instantiate a 'LoggerMyConfigurator' class.
+                    &lt;br /&gt;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.&amp;nbsp;&amp;nbsp;If you want 
to use a configuration file that's not the default,
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set
 the LOG4PHP_CONFIGURATION constants to Your configuration filename.
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ex:
 define('LOG4PHP_CONFIGURATION', '/my/path/my_config.conf');
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Note
 that if config extension is NOT .xml and LOG4PHP_CONFIGURATOR_CLASS
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;is
 not defined, the LoggerPropertyConfigurator will be used.&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3.&amp;nbsp;&amp;nbsp;If you want 
to bypass the initial configuration procedure, set the 
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'LOG4PHP_DEFAULT_INIT_OVERRIDE'
 to true.
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ex:
 define('LOG4PHP_DEFAULT_INIT_OVERRIDE', true);
+                    &lt;br /&gt;*/
+                    &lt;br /&gt;
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;require_once(&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;LOG4PHP_DIR &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;. &lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'/LoggerManager.php'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#FF8000&quot;&gt;/* 
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Or You 
can use:
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;require_once('/my/log4php/path/LoggerManager.php');
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and 
LOG4PHP_DIR will be automatically set to '/my/log4php/path'.
+                    &lt;br /&gt;*/
+                    &lt;br /&gt;
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;class &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Test &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;{
+                    &lt;br /&gt;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var 
&lt;/font&gt;&lt;font color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;;
+                    &lt;br /&gt;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Test&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;()
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;=&amp;amp; &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;LoggerManager&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;getLogger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'Test'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;testLog&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;()
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;debug&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a DEBUG log generated by Test::testLog() 
class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;info&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an INFO log generated by Test::testLog() 
class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;warn&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a WARN log generated by Test::testLog() 
class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;error&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an ERROR log generated by Test::testLog() 
class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;fatal&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a FATAL log generated by Test::testLog() 
class'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
+                    &lt;br /&gt;
+                    &lt;br /&gt;}
+                    &lt;br /&gt;
+                    &lt;br /&gt;class &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;TestTest &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;extends &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;test &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;{
+                    &lt;br /&gt;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var 
&lt;/font&gt;&lt;font color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;TestTest&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;()
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Test&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;=&amp;amp; &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;LoggerManager&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;getLogger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'Test.Test'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;testLog&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;()
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;LoggerNDC&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;push&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'NDC generated by 
TestTest::testLog()'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;debug&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a DEBUG log generated by 
TestTest::testLog() class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;info&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an INFO log generated by 
TestTest::testLog() class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;warn&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a WARN log generated by 
TestTest::testLog() class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;error&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an ERROR log generated by 
TestTest::testLog() class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;$this&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;fatal&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a FATAL log generated by 
TestTest::testLog() class'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font
 color=&quot;#0000BB&quot;&gt;LoggerNDC&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;pop&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
+                    &lt;br /&gt;
+                    &lt;br /&gt;} 
+                    &lt;br /&gt;
+                    &lt;br /&gt;function &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Bar&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;()
+                    &lt;br /&gt;{
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;=&amp;amp; &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;LoggerManager&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;getLogger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'bar'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#FF8000&quot;&gt;/*
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;note
 that the message here is an array
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/ 
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;debug&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(array(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'one'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;, &lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'two'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;, &lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'tree'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;));
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;info&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an INFO log generated by Bar() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;warn&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a WARN log generated by Bar() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;error&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an ERROR log generated by Bar() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br 
/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;fatal&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a FATAL log generated by Bar() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br /&gt;}
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;=&amp;amp; &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;LoggerManager&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;::&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;getLogger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'main'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;debug&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a DEBUG log generated by main() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;info&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an INFO log generated by main() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;warn&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a WARN log generated by main() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;error&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is an ERROR log generated by main() 
function'&lt;/font&gt;&lt;font color=&quot;#007700&quot;&gt;);
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$logger&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;fatal&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;(&lt;/font&gt;&lt;font 
color=&quot;#DD0000&quot;&gt;'this is a FATAL log generated by main() 
function'&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                    &lt;br /&gt;
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$test &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;= new &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Test&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$test&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;testLog&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$testTest &lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;= new &lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;TestTest&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;$testTest&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;-&amp;gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;testLog&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;Bar&lt;/font&gt;&lt;font 
color=&quot;#007700&quot;&gt;();
+                    &lt;br /&gt;
+                    &lt;br /&gt;&lt;/font&gt;&lt;font 
color=&quot;#0000BB&quot;&gt;?&amp;gt;&lt;/font&gt;
+                    &lt;/font&gt;
+            </code>
+        </div>            
+    
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">&#169;  
+          2007
+    
+          Apache Software Foundation
+          
+  
+
+  
+    
+  
+  
+  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>


Reply via email to