Return-Path:
X-Original-To: apmail-logging-commits-archive@minotaur.apache.org
Delivered-To: apmail-logging-commits-archive@minotaur.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id 42729D34A
for ;
Sat, 17 Nov 2012 13:12:19 +0000 (UTC)
Received: (qmail 17232 invoked by uid 500); 17 Nov 2012 13:12:18 -0000
Delivered-To: apmail-logging-commits-archive@logging.apache.org
Received: (qmail 17166 invoked by uid 500); 17 Nov 2012 13:12:18 -0000
Mailing-List: contact commits-help@logging.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@logging.apache.org
Delivered-To: mailing list commits@logging.apache.org
Received: (qmail 17047 invoked by uid 99); 17 Nov 2012 13:12:12 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 13:12:12 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 13:12:09 +0000
Received: from eris.apache.org (localhost [127.0.0.1])
by eris.apache.org (Postfix) with ESMTP id 7FA6F23889E2;
Sat, 17 Nov 2012 13:11:49 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r1410726 [1/3] - in /logging/log4j/log4j2/trunk/src/site:
resources/css/ xdoc/ xdoc/manual/
Date: Sat, 17 Nov 2012 13:11:47 -0000
To: commits@logging.apache.org
From: ihabunek@apache.org
X-Mailer: svnmailer-1.0.8-patched
Message-Id: <20121117131149.7FA6F23889E2@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Author: ihabunek
Date: Sat Nov 17 13:11:44 2012
New Revision: 1410726
URL: http://svn.apache.org/viewvc?rev=1410726&view=rev
Log:
Improved site styling, mostly code blocks and tables.
Modified:
logging/log4j/log4j2/trunk/src/site/resources/css/site.css
logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm
logging/log4j/log4j2/trunk/src/site/xdoc/index.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/api.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/appenders.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/architecture.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml.vm
logging/log4j/log4j2/trunk/src/site/xdoc/manual/eventlogging.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/extending.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/filters.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/flowtracing.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/index.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm
logging/log4j/log4j2/trunk/src/site/xdoc/manual/lookups.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/markers.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/messages.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/migration.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/plugins.xml
logging/log4j/log4j2/trunk/src/site/xdoc/manual/thread-context.xml
Modified: logging/log4j/log4j2/trunk/src/site/resources/css/site.css
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/resources/css/site.css?rev=1410726&r1=1410725&r2=1410726&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/resources/css/site.css (original)
+++ logging/log4j/log4j2/trunk/src/site/resources/css/site.css Sat Nov 17 13:11:44 2012
@@ -22,6 +22,10 @@ div.clear hr { display: none; }
--------------------------------- */
li { line-height: 20px; }
tt { font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; padding: 3px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; }
+dt { margin: 15px 0 5px 0; font-size: 1.2em }
+
+.big-red { font-weight: bold; color: #D14 }
+.big-green { font-weight: bold; color: green }
.layout-table { width: 100%; }
.sidebar { width: 250px; vertical-align: top; }
Modified: logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm?rev=1410726&r1=1410725&r2=1410726&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm Sat Nov 17 13:11:44 2012
@@ -26,13 +26,12 @@
-
- Log4j 2.x is hosted in the Apache Software Foundation's subversion repository. Details on obtaining the
- most current source code can be found at
- Log4j Source Repository].
- The source from the latest release may be obtained by downloading it using the instructions at
- Log4j Downloads.
-
+
+ Log4j 2.x is hosted in the Apache Software Foundation's subversion repository. Details on obtaining the
+ most current source code can be found at
+ Log4j Source Repository. The source from the latest release may be
+ obtained by downloading it using the instructions at Log4j Downloads.
+
Log4j 2.x uses Maven 2 or 3 as its build tool. To build Log4j simply run "mvn install" from the root
directory.
@@ -43,20 +42,20 @@
To use Log4j 2 in your application make sure that both the API and Core jars are in the application's
classpath. With Maven add the dependencies listed below to your pom.xml.
If there are existing components that are written to use Log4j 1.x and it is desired to have this
logging routed to Log4j 2 then remove any log4j 1.x dependencies and add the following.
Commons Logging is used in many components as a way of letting applications choose the specific
logging implementation. To route logging from those components into Log4j 2 include the
following dependency and do not remove the Commons Logging jar.
- Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j
- 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in
- Logback's architecture.
-
-
-
Some of the features and improvements in Log4j 2 are:
-
-
API Separation
-
+
+ Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j
+ 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in
+ Logback's architecture.
+
+
+
Some of the features and improvements in Log4j 2 are:
+
+
+
API Separation
+
The API for Log4j is separate from the implementation making it clear for application developers
which classes and methods they can use while ensuring forward compatibility. This allows the
Log4j team to improve the implementation safely and in a compatible manner.
-
-
Improved Performance
-
+
+
Improved Performance
+
Log4j 2 performs faster than Log4j 1.x in critical areas and similarly to Logback under most circumstances.
See Performance for more information.
-
-
Support for multiple APIs
-
+
+
Support for multiple APIs
+
While the Log4j 2 API will provide the best performance, Log4j 2 provides support for the SLF4J and
Commons Logging APIs.
-
-
Automatic Reloading of Configurations
-
+
+
Automatic Reloading of Configurations
+
Like Logback, Log4j 2 can automatically reload its configuration upon modification. Unlike Logback,
it will do so without losing log events while reconfiguration is taking place.
-
-
Advanced Filtering
-
+
+
Advanced Filtering
+
Like Logback, Log4j 2 supports filtering based on context data, markers, regular expressions,
and other components in the Log event. Filtering can be specified to apply to all events
before being passed to Loggers or as they pass through Appenders. In addition, filters can also
be associated with Loggers. Unlike Logback, you can use a common Filter class in any of these
circumstances.
-
-
Plugin Architecture
-
+
+
Plugin Architecture
+
Log4j uses the plugin pattern to configure components. As such, you do not need to write code
to create and configure an Appender, Layout, Pattern Converter, and so on. Log4j automatically
recognizes plugins and uses them when a configuration references them.
-
-
Property Support
-
+
+
Property Support
+
You can reference properties in a configuration, Log4j will directly replace them, or Log4j will
pass them to an underlying component that will dynamically resolve them. Properties come from values
defined in the configuration file, system properties, environment variables, the ThreadContext
Map, and data present in the event. Users can further customize the property providers by
adding their own Lookup Plugin.
-
-
+
+
-
-
The Log4j 2 User's Guide is available on this site or as a downloadable
- PDF
-
.
-
-
-
- Log4j 2 requires Java 5 but takes advantage of enhancements in Java 6 to improve performance.
- Some features require optional dependencies; the documentation for these features specifies the dependencies.
-
-
-
-
-
- Log4j 2 is now available for testing. The API for Log4j 2 is not compatible with Log4j 1.x, however an adapter
- is available to allow applications to continue to use the Log4j 1.x API. Adapters are also available for
- Apache Commons Logging and SLF4J.
-
+
+
+ The Log4j 2 User's Guide is available on this site or as a downloadable
+ PDF.
+
+
+
+
+
+ Log4j 2 requires Java 5 but takes advantage of enhancements in Java 6 to improve performance.
+ Some features require optional dependencies; the documentation for these features specifies the
+ dependencies.
+
+
+
+
+
+ Log4j 2 is now available for testing. The API for Log4j 2 is not compatible with Log4j 1.x, however an adapter
+ is available to allow applications to continue to use the Log4j 1.x API. Adapters are also available for
+ Apache Commons Logging and SLF4J.
+