Return-Path: Delivered-To: apmail-logging-general-archive@www.apache.org Received: (qmail 30257 invoked from network); 21 Jul 2007 17:22:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2007 17:22:43 -0000 Received: (qmail 99401 invoked by uid 500); 21 Jul 2007 17:22:31 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 99358 invoked by uid 500); 21 Jul 2007 17:22:31 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Logging General" List-Id: Delivered-To: mailing list general@logging.apache.org Received: (qmail 99221 invoked by uid 99); 21 Jul 2007 17:22:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 10:22:30 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 10:22:21 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 5B3361A9879; Sat, 21 Jul 2007 10:21:11 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r558355 [17/25] - in /logging/site/trunk/docs/log4j/companions/component: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/log4j/ apidocs/org/apache/log4j/class-use/ apidocs/org/apache/log4j/helpers/ apidocs/org/apache/log4j/... Date: Sat, 21 Jul 2007 17:21:03 -0000 To: general@logging.apache.org From: carnold@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070721172111.5B3361A9879@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: logging/site/trunk/docs/log4j/companions/component/license.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/license.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/license.html (added) +++ logging/site/trunk/docs/log4j/companions/component/license.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + Component - Project License + + + + + + + +
+ +
+
+
+

Overview

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

Project License

Apache License, Version 2.0

+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/license.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/mail-lists.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/mail-lists.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/mail-lists.html (added) +++ logging/site/trunk/docs/log4j/companions/component/mail-lists.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + Component - Project Mailing Lists + + + + + + + +
+ +
+
+
+

Project Mailing Lists

These are the mailing lists that have been established for this project. For each list, there is a subscribe, unsubscribe, and an archive link.

NameSubscribeUnsubscribePostArchiveOther Archives
log4j-userSubscribeUnsubscribePostmail-archives.apache.orgmarc.theaimsgroup.com
dir.gmane.org
log4j-devSubscribeUnsubscribePostmail-archives.apache.orgmarc.theaimsgroup.com
dir.gmane.org
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/mail-lists.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/pmd.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/pmd.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/pmd.html (added) +++ logging/site/trunk/docs/log4j/companions/component/pmd.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + Component - PMD Results + + + + + + + +
+ +
+
+
+

PMD Results

The following document contains the results of PMD 3.9.

Files

PMD found no problems in your source code.
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/pmd.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/pmd.xml URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/pmd.xml?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/pmd.xml (added) +++ logging/site/trunk/docs/log4j/companions/component/pmd.xml Sat Jul 21 10:20:56 2007 @@ -0,0 +1,3 @@ + + + \ No newline at end of file Added: logging/site/trunk/docs/log4j/companions/component/project-info.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/project-info.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/project-info.html (added) +++ logging/site/trunk/docs/log4j/companions/component/project-info.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + Component - Project Information + + + + + + + +
+ +
+
+
+

Project Information

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

Overview

DocumentDescription
DependenciesThis document lists the projects dependencies and provides information on each dependency.
Continuous IntegrationThis is a link to the definitions of all continuous integration processes that builds and tests code on a frequent, regular basis.
Mailing ListsThis document provides subscription and archive information for this project's mailing lists.
Issue TrackingThis is a link to the issue management system for this project. Issues (bugs, features, change requests) can be created and queried using this link.
Source RepositoryThis is a link to the online source repository that can be viewed via a web browser.
Project LicenseThis is a link to the definitions of project licenses.
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/project-info.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/project-reports.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/project-reports.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/project-reports.html (added) +++ logging/site/trunk/docs/log4j/companions/component/project-reports.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + Component - Generated Reports + + + + + + + +
+ +
+
+
+

Generated Reports

This document provides an overview of the various reports that are automatically generated by Maven Each report is briefly described below.

Overview

DocumentDescription
CPD ReportDuplicate code detection.
JavaDocsJavaDoc API documentation.
PMD ReportVerification of coding rules.
Changes ReportChanges Report on Releases of the Project.
Source XrefHTML based, cross-reference version of Java source code.
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/project-reports.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/roadmap.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/roadmap.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/roadmap.html (added) +++ logging/site/trunk/docs/log4j/companions/component/roadmap.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + Component - apache-log4j-component Roadmap + + + + + + + +
+ +
+
+
+

apache-log4j-component Roadmap

No additional development is anticipated.

+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/roadmap.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/source-repository.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/source-repository.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/source-repository.html (added) +++ logging/site/trunk/docs/log4j/companions/component/source-repository.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + Component - Source Repository + + + + + + + +
+ +
+
+
+

Overview

This project uses Subversion to manage its source code. Instructions on Subversion use can be found at http://svnbook.red-bean.com/.

Web Access

The following is a link to the online source repository.

Anonymous access

The source can be checked out anonymously from SVN with this command:

$ svn checkout http://svn.apache.org/repos/asf/logging/log4j/companions/component/trunk apache-log4j-component

Developer access

Everyone can access the Subversion repository via HTTPS, but Committers must checkout the Subversion repository via HTTPS.

$ svn checkout https://svn.apache.org/repos/asf/logging/log4j/companions/component/trunk apache-log4j-component

To commit changes to the repository, execute the following command to commit your changes (svn will prompt you for your password)

$ svn commit --username your-username -m "A message"

Access from behind a firewall

For those users who are stuck behind a corporate firewall which is blocking http access to the Subversion repository, you can try to access it via the developer connection:

$ svn checkout https://svn.apache.org/repos/asf/logging/log4j/companions/component/trunk apache-log4j-component

Access through a proxy

The Subversion client can go through a proxy, if you configure it to do so. First, edit your "servers" configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)

There are comments in the file explaining what to do. If you don't have that file, get the latest Subversion client and run any command; this will cause the configuration directory and template files to be created.

Example : Edit the 'servers' file and add something like :

[global]
+http-proxy-host = your.proxy.name
+http-proxy-port = 3128
+
+
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4j/companions/component/source-repository.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/xref-test/allclasses-frame.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/xref-test/allclasses-frame.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/xref-test/allclasses-frame.html (added) +++ logging/site/trunk/docs/log4j/companions/component/xref-test/allclasses-frame.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,29 @@ + + + + + + All Classes + + + + +

All Classes

+ + + + + Propchange: logging/site/trunk/docs/log4j/companions/component/xref-test/allclasses-frame.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/xref-test/index.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/xref-test/index.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/xref-test/index.html (added) +++ logging/site/trunk/docs/log4j/companions/component/xref-test/index.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,22 @@ + + + + + + Apache Component Companion for log4j 1.2. 1.0-SNAPSHOT Reference + + + + + + + + + + <h1>Frame Alert</h1> + <p> + You don't have frames. Go <a href="overview-summary.html">here</a> + </p> + + + Propchange: logging/site/trunk/docs/log4j/companions/component/xref-test/index.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/MockReceiver.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/MockReceiver.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/MockReceiver.html (added) +++ logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/MockReceiver.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,121 @@ + + + +MockReceiver xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one or more
+3    * contributor license agreements.  See the NOTICE file distributed with
+4    * this work for additional information regarding copyright ownership.
+5    * The ASF licenses this file to You under the Apache License, Version 2.0
+6    * (the "License"); you may not use this file except in compliance with
+7    * the License.  You may obtain a copy of the License at
+8    *
+9    *      http://www.apache.org/licenses/LICENSE-2.0
+10   *
+11   * Unless required by applicable law or agreed to in writing, software
+12   * distributed under the License is distributed on an "AS IS" BASIS,
+13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+14   * See the License for the specific language governing permissions and
+15   * limitations under the License.
+16   */
+17  package org.apache.log4j.plugins;
+18  
+19  import org.apache.log4j.plugins.PluginSkeleton;
+20  
+21  /***
+22   * Mock receiver used by PluginConfiguratorTest.
+23   */
+24  public final class MockReceiver extends PluginSkeleton {
+25      /***
+26       * Is active.
+27       */
+28      private boolean active = false;
+29      /***
+30       * Host name.
+31       */
+32      private String host;
+33      /***
+34       * Port.
+35       */
+36      private int port = 0;
+37  
+38      /***
+39       * Create new instance.
+40       */
+41      public MockReceiver() {
+42          super();
+43      }
+44  
+45      /***
+46       * Shutdown.
+47       */
+48      public void shutdown() {
+49          active = false;
+50      }
+51  
+52      /***
+53       * Is plugin active.
+54       * @return true if active.
+55       */
+56      public boolean isActive() {
+57          return active;
+58      }
+59  
+60      /***
+61       * Activate options.
+62       */
+63      public void activateOptions() {
+64          active = true;
+65      }
+66  
+67      /***
+68        Get the remote host to connect to for logging events.
+69        @return host
+70       */
+71      public String getHost() {
+72        return host;
+73      }
+74  
+75      /***
+76       * Configures the Host property, this will require activateOptions
+77       * to be called for this to take effect.
+78       * @param remoteHost address of remote host.
+79       */
+80      public void setHost(final String remoteHost) {
+81        this.host = remoteHost;
+82      }
+83      /***
+84        Set the remote host to connect to for logging events.
+85       Equivalent to setHost.
+86       @param remoteHost address of remote host.
+87       */
+88      public void setPort(final String remoteHost) {
+89        host = remoteHost;
+90      }
+91  
+92      /***
+93        Get the remote port to connect to for logging events.
+94       @return port
+95       */
+96      public int getPort() {
+97        return port;
+98      }
+99  
+100     /***
+101       Set the remote port to connect to for logging events.
+102       @param p port
+103      */
+104     public void setPort(final int p) {
+105       this.port = p;
+106     }
+107 
+108 }
+
+
+ + Propchange: logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/MockReceiver.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/PluginConfiguratorTest.html URL: http://svn.apache.org/viewvc/logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/PluginConfiguratorTest.html?view=auto&rev=558355 ============================================================================== --- logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/PluginConfiguratorTest.html (added) +++ logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/PluginConfiguratorTest.html Sat Jul 21 10:20:56 2007 @@ -0,0 +1,82 @@ + + + +PluginConfiguratorTest xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one or more
+3    * contributor license agreements.  See the NOTICE file distributed with
+4    * this work for additional information regarding copyright ownership.
+5    * The ASF licenses this file to You under the Apache License, Version 2.0
+6    * (the "License"); you may not use this file except in compliance with
+7    * the License.  You may obtain a copy of the License at
+8    *
+9    *      http://www.apache.org/licenses/LICENSE-2.0
+10   *
+11   * Unless required by applicable law or agreed to in writing, software
+12   * distributed under the License is distributed on an "AS IS" BASIS,
+13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+14   * See the License for the specific language governing permissions and
+15   * limitations under the License.
+16   */
+17  package org.apache.log4j.plugins;
+18  
+19  import junit.framework.TestCase;
+20  import org.apache.log4j.LogManager;
+21  import org.apache.log4j.LoggerRepositoryExImpl;
+22  import org.apache.log4j.plugins.PluginRegistry;
+23  
+24  import java.io.FileNotFoundException;
+25  import java.io.IOException;
+26  import java.io.InputStream;
+27  import java.util.List;
+28  
+29  /***
+30   * Tests for PluginConfigurator.
+31   */
+32  public final class PluginConfiguratorTest extends TestCase {
+33  
+34      /***
+35       * Create new instance.
+36       *
+37       * @param testName test name.
+38       */
+39      public PluginConfiguratorTest(final String testName) {
+40          super(testName);
+41      }
+42  
+43      /***
+44       * Test parsing a file containing a plugin element.
+45       */
+46      public void testParse() throws IOException {
+47          InputStream is =
+48                  PluginConfiguratorTest.class.getResourceAsStream("plugins1.xml");
+49          if (is == null) {
+50              throw new FileNotFoundException("Unable to find resource");
+51          }
+52          PluginConfigurator conf = new PluginConfigurator();
+53          LoggerRepositoryExImpl repo = new LoggerRepositoryExImpl(
+54                  LogManager.getLoggerRepository());
+55          conf.doConfigure(is, repo);
+56          PluginRegistry plugins = repo.getPluginRegistry();
+57          assertTrue(plugins.pluginNameExists("mock1"));
+58          List receivers = plugins.getPlugins(
+59                  MockReceiver.class);
+60          assertEquals(1, receivers.size());
+61          MockReceiver mock1 = (MockReceiver) receivers.get(0);
+62          assertEquals("mock1", mock1.getName());
+63          assertEquals("127.0.0.1", mock1.getHost());
+64          assertEquals(4560, mock1.getPort());
+65          assertTrue(mock1.isActive());
+66          plugins.stopAllPlugins();
+67          assertFalse(mock1.isActive());
+68      }
+69  }
+
+
+ + Propchange: logging/site/trunk/docs/log4j/companions/component/xref-test/org/apache/log4j/plugins/PluginConfiguratorTest.html ------------------------------------------------------------------------------ svn:mime-type = text/html