You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/03/05 19:53:10 UTC
svn commit: r853148 [19/36] - in
/websites/production/commons/content/proper/commons-logging/javadocs:
api-1.0.4/ api-1.0.4/api/ api-1.0.4/apidocs/ api-1.0.4/apidocs/org/
api-1.0.4/apidocs/org/apache/ api-1.0.4/apidocs/org/apache/commons/
api-1.0.4/api...
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,196 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DefaultConfigTestCase xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a> <em class="comment"> * </em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> * </em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> * </em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a>
+<a name="17" href="#17">17</a> <strong>package</strong> <a href="../../../../../org/apache/commons/logging/log4j/package-summary.html">org.apache.commons.logging.log4j</a>;
+<a name="18" href="#18">18</a>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong>import</strong> java.io.ByteArrayInputStream;
+<a name="21" href="#21">21</a> <strong>import</strong> java.io.ByteArrayOutputStream;
+<a name="22" href="#22">22</a> <strong>import</strong> java.io.ObjectInputStream;
+<a name="23" href="#23">23</a> <strong>import</strong> java.io.ObjectOutputStream;
+<a name="24" href="#24">24</a>
+<a name="25" href="#25">25</a> <strong>import</strong> junit.framework.Test;
+<a name="26" href="#26">26</a> <strong>import</strong> junit.framework.TestCase;
+<a name="27" href="#27">27</a> <strong>import</strong> junit.framework.TestSuite;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <strong>import</strong> org.apache.commons.logging.Log;
+<a name="30" href="#30">30</a> <strong>import</strong> org.apache.commons.logging.LogFactory;
+<a name="31" href="#31">31</a>
+<a name="32" href="#32">32</a>
+<a name="33" href="#33">33</a> <em>/**<em>*</em></em>
+<a name="34" href="#34">34</a> <em> * <p>TestCase for Log4J logging when running on a system with</em>
+<a name="35" href="#35">35</a> <em> * zero configuration, and with Log4J present (so Log4J logging</em>
+<a name="36" href="#36">36</a> <em> * should be automatically configured).</p></em>
+<a name="37" href="#37">37</a> <em> *</em>
+<a name="38" href="#38">38</a> <em> * @author Craig R. McClanahan</em>
+<a name="39" href="#39">39</a> <em> * @version $Revision$ $Date: 2004/02/28 21:46:46 $</em>
+<a name="40" href="#40">40</a> <em> */</em>
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/commons/logging/log4j/DefaultConfigTestCase.html">DefaultConfigTestCase</a> <strong>extends</strong> TestCase {
+<a name="43" href="#43">43</a>
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <em class="comment">// ----------------------------------------------------------- Constructors</em>
+<a name="46" href="#46">46</a>
+<a name="47" href="#47">47</a>
+<a name="48" href="#48">48</a> <em>/**<em>*</em></em>
+<a name="49" href="#49">49</a> <em> * <p>Construct a new instance of this test case.</p></em>
+<a name="50" href="#50">50</a> <em> *</em>
+<a name="51" href="#51">51</a> <em> * @param name Name of the test case</em>
+<a name="52" href="#52">52</a> <em> */</em>
+<a name="53" href="#53">53</a> <strong>public</strong> <a href="../../../../../org/apache/commons/logging/log4j/DefaultConfigTestCase.html">DefaultConfigTestCase</a>(String name) {
+<a name="54" href="#54">54</a> <strong>super</strong>(name);
+<a name="55" href="#55">55</a> }
+<a name="56" href="#56">56</a>
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em class="comment">// ----------------------------------------------------- Instance Variables</em>
+<a name="59" href="#59">59</a>
+<a name="60" href="#60">60</a>
+<a name="61" href="#61">61</a> <em>/**<em>*</em></em>
+<a name="62" href="#62">62</a> <em> * <p>The {@link LogFactory} implementation we have selected.</p></em>
+<a name="63" href="#63">63</a> <em> */</em>
+<a name="64" href="#64">64</a> <strong>protected</strong> LogFactory factory = <strong>null</strong>;
+<a name="65" href="#65">65</a>
+<a name="66" href="#66">66</a>
+<a name="67" href="#67">67</a> <em>/**<em>*</em></em>
+<a name="68" href="#68">68</a> <em> * <p>The {@link Log} implementation we have selected.</p></em>
+<a name="69" href="#69">69</a> <em> */</em>
+<a name="70" href="#70">70</a> <strong>protected</strong> Log log = <strong>null</strong>;
+<a name="71" href="#71">71</a>
+<a name="72" href="#72">72</a>
+<a name="73" href="#73">73</a> <em class="comment">// ------------------------------------------- JUnit Infrastructure Methods</em>
+<a name="74" href="#74">74</a>
+<a name="75" href="#75">75</a>
+<a name="76" href="#76">76</a> <em>/**<em>*</em></em>
+<a name="77" href="#77">77</a> <em> * Set up instance variables required by this test case.</em>
+<a name="78" href="#78">78</a> <em> */</em>
+<a name="79" href="#79">79</a> <strong>public</strong> <strong>void</strong> setUp() throws Exception {
+<a name="80" href="#80">80</a> setUpFactory();
+<a name="81" href="#81">81</a> setUpLog(<span class="string">"TestLogger"</span>);
+<a name="82" href="#82">82</a> }
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a>
+<a name="85" href="#85">85</a> <em>/**<em>*</em></em>
+<a name="86" href="#86">86</a> <em> * Return the tests included in this test suite.</em>
+<a name="87" href="#87">87</a> <em> */</em>
+<a name="88" href="#88">88</a> <strong>public</strong> <strong>static</strong> Test suite() {
+<a name="89" href="#89">89</a> <strong>return</strong> (<strong>new</strong> TestSuite(DefaultConfigTestCase.<strong>class</strong>));
+<a name="90" href="#90">90</a> }
+<a name="91" href="#91">91</a>
+<a name="92" href="#92">92</a> <em>/**<em>*</em></em>
+<a name="93" href="#93">93</a> <em> * Tear down instance variables required by this test case.</em>
+<a name="94" href="#94">94</a> <em> */</em>
+<a name="95" href="#95">95</a> <strong>public</strong> <strong>void</strong> tearDown() {
+<a name="96" href="#96">96</a> log = <strong>null</strong>;
+<a name="97" href="#97">97</a> factory = <strong>null</strong>;
+<a name="98" href="#98">98</a> LogFactory.releaseAll();
+<a name="99" href="#99">99</a> }
+<a name="100" href="#100">100</a>
+<a name="101" href="#101">101</a>
+<a name="102" href="#102">102</a> <em class="comment">// ----------------------------------------------------------- Test Methods</em>
+<a name="103" href="#103">103</a>
+<a name="104" href="#104">104</a>
+<a name="105" href="#105">105</a> <em class="comment">// Test pristine Log instance</em>
+<a name="106" href="#106">106</a> <strong>public</strong> <strong>void</strong> testPristineLog() {
+<a name="107" href="#107">107</a>
+<a name="108" href="#108">108</a> checkLog();
+<a name="109" href="#109">109</a>
+<a name="110" href="#110">110</a> }
+<a name="111" href="#111">111</a>
+<a name="112" href="#112">112</a>
+<a name="113" href="#113">113</a> <em class="comment">// Test pristine LogFactory instance</em>
+<a name="114" href="#114">114</a> <strong>public</strong> <strong>void</strong> testPristineFactory() {
+<a name="115" href="#115">115</a>
+<a name="116" href="#116">116</a> assertNotNull(<span class="string">"LogFactory exists"</span>, factory);
+<a name="117" href="#117">117</a> assertEquals(<span class="string">"LogFactory class"</span>,
+<a name="118" href="#118">118</a> <span class="string">"org.apache.commons.logging.impl.LogFactoryImpl"</span>,
+<a name="119" href="#119">119</a> factory.getClass().getName());
+<a name="120" href="#120">120</a>
+<a name="121" href="#121">121</a> String names[] = factory.getAttributeNames();
+<a name="122" href="#122">122</a> assertNotNull(<span class="string">"Names exists"</span>, names);
+<a name="123" href="#123">123</a> assertEquals(<span class="string">"Names empty"</span>, 0, names.length);
+<a name="124" href="#124">124</a>
+<a name="125" href="#125">125</a> }
+<a name="126" href="#126">126</a>
+<a name="127" href="#127">127</a>
+<a name="128" href="#128">128</a> <em class="comment">// Test Serializability of Log instance</em>
+<a name="129" href="#129">129</a> <strong>public</strong> <strong>void</strong> testSerializable() throws Exception {
+<a name="130" href="#130">130</a>
+<a name="131" href="#131">131</a> <em class="comment">// Serialize and deserialize the instance</em>
+<a name="132" href="#132">132</a> ByteArrayOutputStream baos = <strong>new</strong> ByteArrayOutputStream();
+<a name="133" href="#133">133</a> ObjectOutputStream oos = <strong>new</strong> ObjectOutputStream(baos);
+<a name="134" href="#134">134</a> oos.writeObject(log);
+<a name="135" href="#135">135</a> oos.close();
+<a name="136" href="#136">136</a> ByteArrayInputStream bais =
+<a name="137" href="#137">137</a> <strong>new</strong> ByteArrayInputStream(baos.toByteArray());
+<a name="138" href="#138">138</a> ObjectInputStream ois = <strong>new</strong> ObjectInputStream(bais);
+<a name="139" href="#139">139</a> log = (Log) ois.readObject();
+<a name="140" href="#140">140</a> ois.close();
+<a name="141" href="#141">141</a>
+<a name="142" href="#142">142</a> <em class="comment">// Check the characteristics of the resulting object</em>
+<a name="143" href="#143">143</a> checkLog();
+<a name="144" href="#144">144</a>
+<a name="145" href="#145">145</a> }
+<a name="146" href="#146">146</a>
+<a name="147" href="#147">147</a>
+<a name="148" href="#148">148</a> <em class="comment">// -------------------------------------------------------- Support Methods</em>
+<a name="149" href="#149">149</a>
+<a name="150" href="#150">150</a>
+<a name="151" href="#151">151</a>
+<a name="152" href="#152">152</a> <em class="comment">// Check the log instance</em>
+<a name="153" href="#153">153</a> <strong>protected</strong> <strong>void</strong> checkLog() {
+<a name="154" href="#154">154</a>
+<a name="155" href="#155">155</a> assertNotNull(<span class="string">"Log exists"</span>, log);
+<a name="156" href="#156">156</a> assertEquals(<span class="string">"Log class"</span>,
+<a name="157" href="#157">157</a> <span class="string">"org.apache.commons.logging.impl.Log4JLogger"</span>,
+<a name="158" href="#158">158</a> log.getClass().getName());
+<a name="159" href="#159">159</a>
+<a name="160" href="#160">160</a> <em class="comment">// Can we call level checkers with no exceptions?</em>
+<a name="161" href="#161">161</a> log.isDebugEnabled();
+<a name="162" href="#162">162</a> log.isErrorEnabled();
+<a name="163" href="#163">163</a> log.isFatalEnabled();
+<a name="164" href="#164">164</a> log.isInfoEnabled();
+<a name="165" href="#165">165</a> log.isTraceEnabled();
+<a name="166" href="#166">166</a> log.isWarnEnabled();
+<a name="167" href="#167">167</a>
+<a name="168" href="#168">168</a> }
+<a name="169" href="#169">169</a>
+<a name="170" href="#170">170</a>
+<a name="171" href="#171">171</a> <em class="comment">// Set up factory instance</em>
+<a name="172" href="#172">172</a> <strong>protected</strong> <strong>void</strong> setUpFactory() throws Exception {
+<a name="173" href="#173">173</a> factory = LogFactory.getFactory();
+<a name="174" href="#174">174</a> }
+<a name="175" href="#175">175</a>
+<a name="176" href="#176">176</a>
+<a name="177" href="#177">177</a> <em class="comment">// Set up log instance</em>
+<a name="178" href="#178">178</a> <strong>protected</strong> <strong>void</strong> setUpLog(String name) throws Exception {
+<a name="179" href="#179">179</a> log = LogFactory.getLog(name);
+<a name="180" href="#180">180</a> }
+<a name="181" href="#181">181</a>
+<a name="182" href="#182">182</a>
+<a name="183" href="#183">183</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/DefaultConfigTestCase.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TestAppender xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a> <em class="comment"> * </em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> * </em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> * </em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a>
+<a name="17" href="#17">17</a> <strong>package</strong> <a href="../../../../../org/apache/commons/logging/log4j/package-summary.html">org.apache.commons.logging.log4j</a>;
+<a name="18" href="#18">18</a>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong>import</strong> java.util.ArrayList;
+<a name="21" href="#21">21</a> <strong>import</strong> java.util.Iterator;
+<a name="22" href="#22">22</a> <strong>import</strong> java.util.List;
+<a name="23" href="#23">23</a> <strong>import</strong> org.apache.log4j.AppenderSkeleton;
+<a name="24" href="#24">24</a> <strong>import</strong> org.apache.log4j.spi.LoggingEvent;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a> <em> * <p>Test implementation of <code>org.apache.log4j.Appender</code>.</p></em>
+<a name="29" href="#29">29</a> <em> *</em>
+<a name="30" href="#30">30</a> <em> * @author Craig R. McClanahan</em>
+<a name="31" href="#31">31</a> <em> * @version $Revision$ $Date: 2004/02/28 21:46:46 $</em>
+<a name="32" href="#32">32</a> <em> */</em>
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/commons/logging/log4j/TestAppender.html">TestAppender</a> <strong>extends</strong> AppenderSkeleton {
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a>
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> <em class="comment">// ----------------------------------------------------- Instance Variables</em>
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a>
+<a name="41" href="#41">41</a> <em class="comment">// The set of logged events for this appender</em>
+<a name="42" href="#42">42</a> <strong>private</strong> List events = <strong>new</strong> ArrayList();
+<a name="43" href="#43">43</a>
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <em class="comment">// --------------------------------------------------------- Public Methods</em>
+<a name="46" href="#46">46</a>
+<a name="47" href="#47">47</a>
+<a name="48" href="#48">48</a> <strong>public</strong> Iterator events() {
+<a name="49" href="#49">49</a> <strong>return</strong> (events.iterator());
+<a name="50" href="#50">50</a> }
+<a name="51" href="#51">51</a>
+<a name="52" href="#52">52</a>
+<a name="53" href="#53">53</a> <strong>public</strong> <strong>void</strong> flush() {
+<a name="54" href="#54">54</a> events.clear();
+<a name="55" href="#55">55</a> }
+<a name="56" href="#56">56</a>
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em class="comment">// ------------------------------------------------------- Appender Methods</em>
+<a name="59" href="#59">59</a>
+<a name="60" href="#60">60</a>
+<a name="61" href="#61">61</a> <strong>protected</strong> <strong>void</strong> append(LoggingEvent event) {
+<a name="62" href="#62">62</a> events.add(event);
+<a name="63" href="#63">63</a> }
+<a name="64" href="#64">64</a>
+<a name="65" href="#65">65</a>
+<a name="66" href="#66">66</a> <strong>public</strong> <strong>void</strong> close() {
+<a name="67" href="#67">67</a> }
+<a name="68" href="#68">68</a>
+<a name="69" href="#69">69</a>
+<a name="70" href="#70">70</a> <strong>public</strong> <strong>boolean</strong> requiresLayout() {
+<a name="71" href="#71">71</a> <strong>return</strong> (false);
+<a name="72" href="#72">72</a> }
+<a name="73" href="#73">73</a>
+<a name="74" href="#74">74</a>
+<a name="75" href="#75">75</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/TestAppender.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,35 @@
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>Logging 1.0.4 Reference Package org.apache.commons.logging.log4j</title>
+ <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.commons.logging.log4j</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+
+ <li>
+ <a href="CustomConfigTestCase.html" target="classFrame">CustomConfigTestCase</a>
+ </li>
+
+ <li>
+ <a href="DefaultConfigTestCase.html" target="classFrame">DefaultConfigTestCase</a>
+ </li>
+
+ <li>
+ <a href="TestAppender.html" target="classFrame">TestAppender</a>
+ </li>
+
+ </ul>
+
+ </body>
+ </html>
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-frame.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>Logging 1.0.4 Reference Package </title>
+ <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+ <h2>Package org.apache.commons.logging.log4j</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr>
+ <td>
+ <a href="CustomConfigTestCase.html" target="classFrame">CustomConfigTestCase</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="DefaultConfigTestCase.html" target="classFrame">DefaultConfigTestCase</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="TestAppender.html" target="classFrame">TestAppender</a>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+
+ <hr></hr>
+
+ Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.
+ </body>
+ </html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/log4j/package-summary.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,59 @@
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>Logging 1.0.4 Reference Package org.apache.commons.logging</title>
+ <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.commons.logging</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+
+ <li>
+ <a href="AbstractLogTest.html" target="classFrame">AbstractLogTest</a>
+ </li>
+
+ <li>
+ <a href="BasicOperationsTest.html" target="classFrame">BasicOperationsTest</a>
+ </li>
+
+ <li>
+ <a href="LoadTest.html" target="classFrame">LoadTest</a>
+ </li>
+
+ <li>
+ <a href="LogTest.html" target="classFrame">LogTest</a>
+ </li>
+
+ <li>
+ <a href="NoOpLogTest.html" target="classFrame">NoOpLogTest</a>
+ </li>
+
+ <li>
+ <a href="SimpleLogTest.html" target="classFrame">SimpleLogTest</a>
+ </li>
+
+ <li>
+ <a href="TestAll.html" target="classFrame">TestAll</a>
+ </li>
+
+ <li>
+ <a href="UserClass.html" target="classFrame">UserClass</a>
+ </li>
+
+ <li>
+ <a href="Wrapper.html" target="classFrame">Wrapper</a>
+ </li>
+
+ </ul>
+
+ </body>
+ </html>
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-frame.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>Logging 1.0.4 Reference Package </title>
+ <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+ <h2>Package org.apache.commons.logging</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr>
+ <td>
+ <a href="AbstractLogTest.html" target="classFrame">AbstractLogTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="BasicOperationsTest.html" target="classFrame">BasicOperationsTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="LoadTest.html" target="classFrame">LoadTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="LogTest.html" target="classFrame">LogTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="NoOpLogTest.html" target="classFrame">NoOpLogTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="SimpleLogTest.html" target="classFrame">SimpleLogTest</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="TestAll.html" target="classFrame">TestAll</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="UserClass.html" target="classFrame">UserClass</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="Wrapper.html" target="classFrame">Wrapper</a>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+
+ <hr></hr>
+
+ Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.
+ </body>
+ </html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/package-summary.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,267 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CustomConfigTestCase xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a> <em class="comment"> * </em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> * </em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> * </em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a>
+<a name="17" href="#17">17</a> <strong>package</strong> <a href="../../../../../org/apache/commons/logging/simple/package-summary.html">org.apache.commons.logging.simple</a>;
+<a name="18" href="#18">18</a>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong>import</strong> java.util.ArrayList;
+<a name="21" href="#21">21</a> <strong>import</strong> java.util.Iterator;
+<a name="22" href="#22">22</a> <strong>import</strong> java.util.List;
+<a name="23" href="#23">23</a>
+<a name="24" href="#24">24</a> <strong>import</strong> junit.framework.Test;
+<a name="25" href="#25">25</a> <strong>import</strong> junit.framework.TestSuite;
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <strong>import</strong> org.apache.commons.logging.impl.SimpleLog;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a>
+<a name="30" href="#30">30</a> <em>/**<em>*</em></em>
+<a name="31" href="#31">31</a> <em> * <p>TestCase for simple logging when running with custom configuration</em>
+<a name="32" href="#32">32</a> <em> * properties.</p></em>
+<a name="33" href="#33">33</a> <em> *</em>
+<a name="34" href="#34">34</a> <em> * @author Craig R. McClanahan</em>
+<a name="35" href="#35">35</a> <em> * @version $Revision$ $Date: 2004/05/30 10:32:25 $</em>
+<a name="36" href="#36">36</a> <em> */</em>
+<a name="37" href="#37">37</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/commons/logging/simple/CustomConfigTestCase.html">CustomConfigTestCase</a> <strong>extends</strong> <a href="../../../../../org/apache/commons/logging/simple/DefaultConfigTestCase.html">DefaultConfigTestCase</a> {
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <em class="comment">// ----------------------------------------------------------- Constructors</em>
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a>
+<a name="43" href="#43">43</a> <em>/**<em>*</em></em>
+<a name="44" href="#44">44</a> <em> * <p>Construct a new instance of this test case.</p></em>
+<a name="45" href="#45">45</a> <em> *</em>
+<a name="46" href="#46">46</a> <em> * @param name Name of the test case</em>
+<a name="47" href="#47">47</a> <em> */</em>
+<a name="48" href="#48">48</a> <strong>public</strong> <a href="../../../../../org/apache/commons/logging/simple/CustomConfigTestCase.html">CustomConfigTestCase</a>(String name) {
+<a name="49" href="#49">49</a> <strong>super</strong>(name);
+<a name="50" href="#50">50</a> }
+<a name="51" href="#51">51</a>
+<a name="52" href="#52">52</a>
+<a name="53" href="#53">53</a> <em class="comment">// ----------------------------------------------------- Instance Variables</em>
+<a name="54" href="#54">54</a>
+<a name="55" href="#55">55</a>
+<a name="56" href="#56">56</a> <em>/**<em>*</em></em>
+<a name="57" href="#57">57</a> <em> * <p>The expected log records.</p></em>
+<a name="58" href="#58">58</a> <em> */</em>
+<a name="59" href="#59">59</a> <strong>protected</strong> List expected;
+<a name="60" href="#60">60</a>
+<a name="61" href="#61">61</a>
+<a name="62" href="#62">62</a> <em>/**<em>*</em></em>
+<a name="63" href="#63">63</a> <em> * <p>The message levels that should have been logged.</p></em>
+<a name="64" href="#64">64</a> <em> */</em>
+<a name="65" href="#65">65</a> <em class="comment">/*</em>
+<a name="66" href="#66">66</a> <em class="comment"> protected Level testLevels[] =</em>
+<a name="67" href="#67">67</a> <em class="comment"> { Level.FINE, Level.INFO, Level.WARNING, Level.SEVERE, Level.SEVERE };</em>
+<a name="68" href="#68">68</a> <em class="comment"> */</em>
+<a name="69" href="#69">69</a>
+<a name="70" href="#70">70</a>
+<a name="71" href="#71">71</a> <em>/**<em>*</em></em>
+<a name="72" href="#72">72</a> <em> * <p>The message strings that should have been logged.</p></em>
+<a name="73" href="#73">73</a> <em> */</em>
+<a name="74" href="#74">74</a> <strong>protected</strong> String testMessages[] =
+<a name="75" href="#75">75</a> { <span class="string">"debug"</span>, <span class="string">"info"</span>, <span class="string">"warn"</span>, <span class="string">"error"</span>, <span class="string">"fatal"</span> };
+<a name="76" href="#76">76</a>
+<a name="77" href="#77">77</a>
+<a name="78" href="#78">78</a> <em class="comment">// ------------------------------------------- JUnit Infrastructure Methods</em>
+<a name="79" href="#79">79</a>
+<a name="80" href="#80">80</a>
+<a name="81" href="#81">81</a> <em>/**<em>*</em></em>
+<a name="82" href="#82">82</a> <em> * Set up instance variables required by this test case.</em>
+<a name="83" href="#83">83</a> <em> */</em>
+<a name="84" href="#84">84</a> <strong>public</strong> <strong>void</strong> setUp() throws Exception {
+<a name="85" href="#85">85</a> expected = <strong>new</strong> ArrayList();
+<a name="86" href="#86">86</a> setUpFactory();
+<a name="87" href="#87">87</a> setUpLog(<span class="string">"DecoratedLogger"</span>);
+<a name="88" href="#88">88</a> }
+<a name="89" href="#89">89</a>
+<a name="90" href="#90">90</a>
+<a name="91" href="#91">91</a> <em>/**<em>*</em></em>
+<a name="92" href="#92">92</a> <em> * Return the tests included in this test suite.</em>
+<a name="93" href="#93">93</a> <em> */</em>
+<a name="94" href="#94">94</a> <strong>public</strong> <strong>static</strong> Test suite() {
+<a name="95" href="#95">95</a> <strong>return</strong> (<strong>new</strong> TestSuite(CustomConfigTestCase.<strong>class</strong>));
+<a name="96" href="#96">96</a> }
+<a name="97" href="#97">97</a>
+<a name="98" href="#98">98</a> <em>/**<em>*</em></em>
+<a name="99" href="#99">99</a> <em> * Tear down instance variables required by this test case.</em>
+<a name="100" href="#100">100</a> <em> */</em>
+<a name="101" href="#101">101</a> <strong>public</strong> <strong>void</strong> tearDown() {
+<a name="102" href="#102">102</a> <strong>super</strong>.tearDown();
+<a name="103" href="#103">103</a> expected = <strong>null</strong>;
+<a name="104" href="#104">104</a> }
+<a name="105" href="#105">105</a>
+<a name="106" href="#106">106</a>
+<a name="107" href="#107">107</a> <em class="comment">// ----------------------------------------------------------- Test Methods</em>
+<a name="108" href="#108">108</a>
+<a name="109" href="#109">109</a>
+<a name="110" href="#110">110</a> <em class="comment">// Test logging message strings with exceptions</em>
+<a name="111" href="#111">111</a> <strong>public</strong> <strong>void</strong> testExceptionMessages() throws Exception {
+<a name="112" href="#112">112</a>
+<a name="113" href="#113">113</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).clearCache();
+<a name="114" href="#114">114</a> logExceptionMessages();
+<a name="115" href="#115">115</a> checkExpected();
+<a name="116" href="#116">116</a>
+<a name="117" href="#117">117</a> }
+<a name="118" href="#118">118</a>
+<a name="119" href="#119">119</a>
+<a name="120" href="#120">120</a> <em class="comment">// Test logging plain message strings</em>
+<a name="121" href="#121">121</a> <strong>public</strong> <strong>void</strong> testPlainMessages() throws Exception {
+<a name="122" href="#122">122</a>
+<a name="123" href="#123">123</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).clearCache();
+<a name="124" href="#124">124</a> logPlainMessages();
+<a name="125" href="#125">125</a> checkExpected();
+<a name="126" href="#126">126</a>
+<a name="127" href="#127">127</a> }
+<a name="128" href="#128">128</a>
+<a name="129" href="#129">129</a>
+<a name="130" href="#130">130</a> <em class="comment">// Test Serializability of standard instance</em>
+<a name="131" href="#131">131</a> <strong>public</strong> <strong>void</strong> testSerializable() throws Exception {
+<a name="132" href="#132">132</a>
+<a name="133" href="#133">133</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).clearCache();
+<a name="134" href="#134">134</a> logPlainMessages();
+<a name="135" href="#135">135</a> <strong>super</strong>.testSerializable();
+<a name="136" href="#136">136</a> logExceptionMessages();
+<a name="137" href="#137">137</a> checkExpected();
+<a name="138" href="#138">138</a>
+<a name="139" href="#139">139</a> }
+<a name="140" href="#140">140</a>
+<a name="141" href="#141">141</a>
+<a name="142" href="#142">142</a> <em class="comment">// -------------------------------------------------------- Support Methods</em>
+<a name="143" href="#143">143</a>
+<a name="144" href="#144">144</a>
+<a name="145" href="#145">145</a> <em class="comment">// Check the decorated log instance</em>
+<a name="146" href="#146">146</a> <strong>protected</strong> <strong>void</strong> checkDecorated() {
+<a name="147" href="#147">147</a>
+<a name="148" href="#148">148</a> assertNotNull(<span class="string">"Log exists"</span>, log);
+<a name="149" href="#149">149</a> assertEquals(<span class="string">"Log class"</span>,
+<a name="150" href="#150">150</a> <span class="string">"org.apache.commons.logging.simple.DecoratedSimpleLog"</span>,
+<a name="151" href="#151">151</a> log.getClass().getName());
+<a name="152" href="#152">152</a>
+<a name="153" href="#153">153</a> <em class="comment">// Can we call level checkers with no exceptions?</em>
+<a name="154" href="#154">154</a> assertTrue(log.isDebugEnabled());
+<a name="155" href="#155">155</a> assertTrue(log.isErrorEnabled());
+<a name="156" href="#156">156</a> assertTrue(log.isFatalEnabled());
+<a name="157" href="#157">157</a> assertTrue(log.isInfoEnabled());
+<a name="158" href="#158">158</a> assertTrue(!log.isTraceEnabled());
+<a name="159" href="#159">159</a> assertTrue(log.isWarnEnabled());
+<a name="160" href="#160">160</a>
+<a name="161" href="#161">161</a> <em class="comment">// Can we retrieve the current log level?</em>
+<a name="162" href="#162">162</a> assertEquals(SimpleLog.LOG_LEVEL_DEBUG, ((SimpleLog) log).getLevel());
+<a name="163" href="#163">163</a>
+<a name="164" href="#164">164</a> <em class="comment">// Can we validate the extra exposed properties?</em>
+<a name="165" href="#165">165</a> checkDecoratedDateTime();
+<a name="166" href="#166">166</a> assertEquals(<span class="string">"DecoratedLogger"</span>,
+<a name="167" href="#167">167</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).getLogName());
+<a name="168" href="#168">168</a> checkShowDateTime();
+<a name="169" href="#169">169</a> assertTrue(((DecoratedSimpleLog) log).getShowShortName());
+<a name="170" href="#170">170</a>
+<a name="171" href="#171">171</a> }
+<a name="172" href="#172">172</a>
+<a name="173" href="#173">173</a> <em>/**<em>* Hook for subclassses */</em></em>
+<a name="174" href="#174">174</a> <strong>protected</strong> <strong>void</strong> checkShowDateTime() {
+<a name="175" href="#175">175</a> assertTrue(!((DecoratedSimpleLog) log).getShowDateTime());
+<a name="176" href="#176">176</a> }
+<a name="177" href="#177">177</a>
+<a name="178" href="#178">178</a> <em>/**<em>* Hook for subclasses */</em></em>
+<a name="179" href="#179">179</a> <strong>protected</strong> <strong>void</strong> checkDecoratedDateTime() {
+<a name="180" href="#180">180</a> assertEquals(<span class="string">"yyyy/MM/dd HH:mm:ss:SSS zzz"</span>,
+<a name="181" href="#181">181</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).getDateTimeFormat());
+<a name="182" href="#182">182</a> }
+<a name="183" href="#183">183</a>
+<a name="184" href="#184">184</a>
+<a name="185" href="#185">185</a>
+<a name="186" href="#186">186</a> <em class="comment">// Check the actual log records against the expected ones</em>
+<a name="187" href="#187">187</a> <strong>protected</strong> <strong>void</strong> checkExpected() {
+<a name="188" href="#188">188</a>
+<a name="189" href="#189">189</a> List acts = ((DecoratedSimpleLog) log).getCache();
+<a name="190" href="#190">190</a> Iterator exps = expected.iterator();
+<a name="191" href="#191">191</a> <strong>int</strong> n = 0;
+<a name="192" href="#192">192</a> <strong>while</strong> (exps.hasNext()) {
+<a name="193" href="#193">193</a> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a> exp = (LogRecord) exps.next();
+<a name="194" href="#194">194</a> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a> act = (LogRecord) acts.get(n++);
+<a name="195" href="#195">195</a> assertEquals(<span class="string">"Row "</span> + n + <span class="string">" type"</span>, exp.type, act.type);
+<a name="196" href="#196">196</a> assertEquals(<span class="string">"Row "</span> + n + <span class="string">" message"</span>, exp.message, act.message);
+<a name="197" href="#197">197</a> assertEquals(<span class="string">"Row "</span> + n + <span class="string">" throwable"</span>, exp.t, act.t);
+<a name="198" href="#198">198</a> }
+<a name="199" href="#199">199</a>
+<a name="200" href="#200">200</a> }
+<a name="201" href="#201">201</a>
+<a name="202" href="#202">202</a>
+<a name="203" href="#203">203</a> <em class="comment">// Check the standard log instance</em>
+<a name="204" href="#204">204</a> <strong>protected</strong> <strong>void</strong> checkStandard() {
+<a name="205" href="#205">205</a>
+<a name="206" href="#206">206</a> checkDecorated();
+<a name="207" href="#207">207</a>
+<a name="208" href="#208">208</a> }
+<a name="209" href="#209">209</a>
+<a name="210" href="#210">210</a>
+<a name="211" href="#211">211</a> <em class="comment">// Log the messages with exceptions</em>
+<a name="212" href="#212">212</a> <strong>protected</strong> <strong>void</strong> logExceptionMessages() {
+<a name="213" href="#213">213</a>
+<a name="214" href="#214">214</a> <em class="comment">// Generate log records</em>
+<a name="215" href="#215">215</a> Throwable t = <strong>new</strong> IndexOutOfBoundsException();
+<a name="216" href="#216">216</a> log.trace(<span class="string">"trace"</span>, t); <em class="comment">// Should not actually get logged</em>
+<a name="217" href="#217">217</a> log.debug(<span class="string">"debug"</span>, t);
+<a name="218" href="#218">218</a> log.info(<span class="string">"info"</span>, t);
+<a name="219" href="#219">219</a> log.warn(<span class="string">"warn"</span>, t);
+<a name="220" href="#220">220</a> log.error(<span class="string">"error"</span>, t);
+<a name="221" href="#221">221</a> log.fatal(<span class="string">"fatal"</span>, t);
+<a name="222" href="#222">222</a>
+<a name="223" href="#223">223</a> <em class="comment">// Record the log records we expect</em>
+<a name="224" href="#224">224</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_DEBUG, <span class="string">"debug"</span>, t));
+<a name="225" href="#225">225</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_INFO, <span class="string">"info"</span>, t));
+<a name="226" href="#226">226</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_WARN, <span class="string">"warn"</span>, t));
+<a name="227" href="#227">227</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_ERROR, <span class="string">"error"</span>, t));
+<a name="228" href="#228">228</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_FATAL, <span class="string">"fatal"</span>, t));
+<a name="229" href="#229">229</a>
+<a name="230" href="#230">230</a> }
+<a name="231" href="#231">231</a>
+<a name="232" href="#232">232</a>
+<a name="233" href="#233">233</a> <em class="comment">// Log the plain messages</em>
+<a name="234" href="#234">234</a> <strong>protected</strong> <strong>void</strong> logPlainMessages() {
+<a name="235" href="#235">235</a>
+<a name="236" href="#236">236</a> <em class="comment">// Generate log records</em>
+<a name="237" href="#237">237</a> log.trace(<span class="string">"trace"</span>); <em class="comment">// Should not actually get logged</em>
+<a name="238" href="#238">238</a> log.debug(<span class="string">"debug"</span>);
+<a name="239" href="#239">239</a> log.info(<span class="string">"info"</span>);
+<a name="240" href="#240">240</a> log.warn(<span class="string">"warn"</span>);
+<a name="241" href="#241">241</a> log.error(<span class="string">"error"</span>);
+<a name="242" href="#242">242</a> log.fatal(<span class="string">"fatal"</span>);
+<a name="243" href="#243">243</a>
+<a name="244" href="#244">244</a> <em class="comment">// Record the log records we expect</em>
+<a name="245" href="#245">245</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_DEBUG, <span class="string">"debug"</span>, <strong>null</strong>));
+<a name="246" href="#246">246</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_INFO, <span class="string">"info"</span>, <strong>null</strong>));
+<a name="247" href="#247">247</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_WARN, <span class="string">"warn"</span>, <strong>null</strong>));
+<a name="248" href="#248">248</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_ERROR, <span class="string">"error"</span>, <strong>null</strong>));
+<a name="249" href="#249">249</a> expected.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(SimpleLog.LOG_LEVEL_FATAL, <span class="string">"fatal"</span>, <strong>null</strong>));
+<a name="250" href="#250">250</a>
+<a name="251" href="#251">251</a> }
+<a name="252" href="#252">252</a>
+<a name="253" href="#253">253</a>
+<a name="254" href="#254">254</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/CustomConfigTestCase.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DateTimeCustomConfigTestCase xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a> <em class="comment"> * </em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> * </em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> * </em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a>
+<a name="17" href="#17">17</a> <strong>package</strong> <a href="../../../../../org/apache/commons/logging/simple/package-summary.html">org.apache.commons.logging.simple</a>;
+<a name="18" href="#18">18</a>
+<a name="19" href="#19">19</a> <strong>import</strong> java.util.Date;
+<a name="20" href="#20">20</a> <strong>import</strong> java.text.SimpleDateFormat;
+<a name="21" href="#21">21</a> <strong>import</strong> java.text.DateFormat;
+<a name="22" href="#22">22</a>
+<a name="23" href="#23">23</a> <strong>import</strong> junit.framework.Test;
+<a name="24" href="#24">24</a> <strong>import</strong> junit.framework.TestSuite;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a> <em> * Tests custom date time format configuration</em>
+<a name="29" href="#29">29</a> <em> */</em>
+<a name="30" href="#30">30</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html">DateTimeCustomConfigTestCase</a> <strong>extends</strong> <a href="../../../../../org/apache/commons/logging/simple/CustomConfigTestCase.html">CustomConfigTestCase</a> {
+<a name="31" href="#31">31</a>
+<a name="32" href="#32">32</a> <em class="comment">// ----------------------------------------------------------- Constructors</em>
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <em>/**<em>*</em></em>
+<a name="35" href="#35">35</a> <em> * Return the tests included in this test suite.</em>
+<a name="36" href="#36">36</a> <em> */</em>
+<a name="37" href="#37">37</a> <strong>public</strong> <strong>static</strong> Test suite() {
+<a name="38" href="#38">38</a> <strong>return</strong> (<strong>new</strong> TestSuite(DateTimeCustomConfigTestCase.<strong>class</strong>));
+<a name="39" href="#39">39</a> }
+<a name="40" href="#40">40</a>
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a> <em>/**<em>*</em></em>
+<a name="43" href="#43">43</a> <em> * <p>Construct a new instance of this test case.</p></em>
+<a name="44" href="#44">44</a> <em> *</em>
+<a name="45" href="#45">45</a> <em> * @param name Name of the test case</em>
+<a name="46" href="#46">46</a> <em> */</em>
+<a name="47" href="#47">47</a> <strong>public</strong> <a href="../../../../../org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html">DateTimeCustomConfigTestCase</a>(String name) {
+<a name="48" href="#48">48</a> <strong>super</strong>(name);
+<a name="49" href="#49">49</a> }
+<a name="50" href="#50">50</a>
+<a name="51" href="#51">51</a> <em class="comment">// ----------------------------------------------------------- Methods</em>
+<a name="52" href="#52">52</a>
+<a name="53" href="#53">53</a> <em>/**<em>* Checks that the date time format has been successfully set */</em></em>
+<a name="54" href="#54">54</a> <strong>protected</strong> <strong>void</strong> checkDecoratedDateTime() {
+<a name="55" href="#55">55</a> assertEquals(<span class="string">"Expected date format to be set"</span>, <span class="string">"dd.mm.yyyy"</span>,
+<a name="56" href="#56">56</a> ((<a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>) log).getDateTimeFormat());
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em class="comment">// try the formatter</em>
+<a name="59" href="#59">59</a> Date now = <strong>new</strong> Date();
+<a name="60" href="#60">60</a> DateFormat formatter = ((DecoratedSimpleLog) log).getDateTimeFormatter();
+<a name="61" href="#61">61</a> SimpleDateFormat sampleFormatter = <strong>new</strong> SimpleDateFormat(<span class="string">"dd.mm.yyyy"</span>);
+<a name="62" href="#62">62</a> assertEquals(<span class="string">"Date should be formatters to pattern dd.mm.yyyy"</span>, sampleFormatter.format(now), formatter.format(now));
+<a name="63" href="#63">63</a> }
+<a name="64" href="#64">64</a>
+<a name="65" href="#65">65</a> <em>/**<em>* Hook for subclassses */</em></em>
+<a name="66" href="#66">66</a> <strong>protected</strong> <strong>void</strong> checkShowDateTime() {
+<a name="67" href="#67">67</a> assertTrue(((DecoratedSimpleLog) log).getShowDateTime());
+<a name="68" href="#68">68</a> }
+<a name="69" href="#69">69</a>
+<a name="70" href="#70">70</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html
==============================================================================
--- websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html (added)
+++ websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html Tue Mar 5 18:53:06 2013
@@ -0,0 +1,113 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DecoratedSimpleLog xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a> <em class="comment"> * </em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> * </em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> * </em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a>
+<a name="17" href="#17">17</a> <strong>package</strong> <a href="../../../../../org/apache/commons/logging/simple/package-summary.html">org.apache.commons.logging.simple</a>;
+<a name="18" href="#18">18</a>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong>import</strong> java.util.ArrayList;
+<a name="21" href="#21">21</a> <strong>import</strong> java.util.List;
+<a name="22" href="#22">22</a> <strong>import</strong> java.text.DateFormat;
+<a name="23" href="#23">23</a> <strong>import</strong> org.apache.commons.logging.impl.SimpleLog;
+<a name="24" href="#24">24</a>
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a> <em> * <p>Decorated instance of SimpleLog to expose internal state and</em>
+<a name="28" href="#28">28</a> <em> * support buffered output.</p></em>
+<a name="29" href="#29">29</a> <em> */</em>
+<a name="30" href="#30">30</a>
+<a name="31" href="#31">31</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a> <strong>extends</strong> SimpleLog {
+<a name="32" href="#32">32</a>
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <em class="comment">// ------------------------------------------------------------ Constructor</em>
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a>
+<a name="37" href="#37">37</a> <strong>public</strong> <a href="../../../../../org/apache/commons/logging/simple/DecoratedSimpleLog.html">DecoratedSimpleLog</a>(String name) {
+<a name="38" href="#38">38</a> <strong>super</strong>(name);
+<a name="39" href="#39">39</a> }
+<a name="40" href="#40">40</a>
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a> <em class="comment">// ------------------------------------------------------------- Properties</em>
+<a name="43" href="#43">43</a>
+<a name="44" href="#44">44</a> <strong>public</strong> DateFormat getDateTimeFormatter() {
+<a name="45" href="#45">45</a> <strong>return</strong> (dateFormatter);
+<a name="46" href="#46">46</a> }
+<a name="47" href="#47">47</a>
+<a name="48" href="#48">48</a>
+<a name="49" href="#49">49</a> <strong>public</strong> String getDateTimeFormat() {
+<a name="50" href="#50">50</a> <strong>return</strong> (dateTimeFormat);
+<a name="51" href="#51">51</a> }
+<a name="52" href="#52">52</a>
+<a name="53" href="#53">53</a>
+<a name="54" href="#54">54</a> <strong>public</strong> String getLogName() {
+<a name="55" href="#55">55</a> <strong>return</strong> (logName);
+<a name="56" href="#56">56</a> }
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a>
+<a name="59" href="#59">59</a> <strong>public</strong> <strong>boolean</strong> getShowDateTime() {
+<a name="60" href="#60">60</a> <strong>return</strong> (showDateTime);
+<a name="61" href="#61">61</a> }
+<a name="62" href="#62">62</a>
+<a name="63" href="#63">63</a>
+<a name="64" href="#64">64</a> <strong>public</strong> <strong>boolean</strong> getShowShortName() {
+<a name="65" href="#65">65</a> <strong>return</strong> (showShortName);
+<a name="66" href="#66">66</a> }
+<a name="67" href="#67">67</a>
+<a name="68" href="#68">68</a>
+<a name="69" href="#69">69</a> <em class="comment">// ------------------------------------------------------- Protected Methods</em>
+<a name="70" href="#70">70</a>
+<a name="71" href="#71">71</a>
+<a name="72" href="#72">72</a> <em class="comment">// Cache logged messages</em>
+<a name="73" href="#73">73</a> <strong>protected</strong> <strong>void</strong> log(<strong>int</strong> type, Object message, Throwable t) {
+<a name="74" href="#74">74</a>
+<a name="75" href="#75">75</a> <strong>super</strong>.log(type, message, t);
+<a name="76" href="#76">76</a> cache.add(<strong>new</strong> <a href="../../../../../org/apache/commons/logging/simple/LogRecord.html">LogRecord</a>(type, message, t));
+<a name="77" href="#77">77</a>
+<a name="78" href="#78">78</a> }
+<a name="79" href="#79">79</a>
+<a name="80" href="#80">80</a>
+<a name="81" href="#81">81</a> <em class="comment">// ---------------------------------------------------------- Public Methods</em>
+<a name="82" href="#82">82</a>
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a> <em class="comment">// Cache of logged records</em>
+<a name="85" href="#85">85</a> <strong>protected</strong> ArrayList cache = <strong>new</strong> ArrayList();
+<a name="86" href="#86">86</a>
+<a name="87" href="#87">87</a>
+<a name="88" href="#88">88</a> <em class="comment">// Clear cache</em>
+<a name="89" href="#89">89</a> <strong>public</strong> <strong>void</strong> clearCache() {
+<a name="90" href="#90">90</a> cache.clear();
+<a name="91" href="#91">91</a> }
+<a name="92" href="#92">92</a>
+<a name="93" href="#93">93</a>
+<a name="94" href="#94">94</a> <em class="comment">// Return cache</em>
+<a name="95" href="#95">95</a> <strong>public</strong> List getCache() {
+<a name="96" href="#96">96</a> <strong>return</strong> (<strong>this</strong>.cache);
+<a name="97" href="#97">97</a> }
+<a name="98" href="#98">98</a>
+<a name="99" href="#99">99</a>
+<a name="100" href="#100">100</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html
------------------------------------------------------------------------------
svn:keywords = Id Revision HeadURL
Propchange: websites/production/commons/content/proper/commons-logging/javadocs/api-1.0.4/xref-test/org/apache/commons/logging/simple/DecoratedSimpleLog.html
------------------------------------------------------------------------------
svn:mime-type = text/html