You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/07/19 23:20:18 UTC
svn commit: r1611968 - in
/logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web:
Log4jWebInitializerImpl.java WebLoggerContextUtils.java
Author: mattsicker
Date: Sat Jul 19 21:20:17 2014
New Revision: 1611968
URL: http://svn.apache.org/r1611968
Log:
Add @since 2.0.1 to new methods.
Modified:
logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java
Modified: logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java?rev=1611968&r1=1611967&r2=1611968&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java (original)
+++ logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java Sat Jul 19 21:20:17 2014
@@ -71,6 +71,7 @@ final class Log4jWebInitializerImpl exte
*
* @param servletContext the ServletContext to initialize
* @return a new Log4jWebLifeCycle
+ * @since 2.0.1
*/
protected static Log4jWebInitializerImpl initialize(final ServletContext servletContext) {
final Log4jWebInitializerImpl initializer = new Log4jWebInitializerImpl(servletContext);
Modified: logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java?rev=1611968&r1=1611967&r2=1611968&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java (original)
+++ logging/log4j/log4j2/trunk/log4j-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java Sat Jul 19 21:20:17 2014
@@ -27,6 +27,8 @@ import org.apache.logging.log4j.core.Log
* particular ServletContext. These methods are most particularly useful for asynchronous servlets where the
* <abbr title="Thread Context ClassLoader">TCCL</abbr> is potentially different from the TCCL used by the
* Servlet container that bootstrapped Log4j.
+ *
+ * @since 2.0.1
*/
public final class WebLoggerContextUtils {
private WebLoggerContextUtils() {
@@ -40,6 +42,7 @@ public final class WebLoggerContextUtils
* @param servletContext the ServletContext to locate a LoggerContext for
* @return the LoggerContext for the given ServletContext
* @throws java.lang.IllegalStateException if no LoggerContext could be found on the given ServletContext
+ * @since 2.0.1
*/
public static LoggerContext getWebLoggerContext(final ServletContext servletContext) {
return (LoggerContext) servletContext.getAttribute(Log4jWebSupport.CONTEXT_ATTRIBUTE);
@@ -50,6 +53,7 @@ public final class WebLoggerContextUtils
*
* @param servletContext the ServletContext to locate a LoggerContext for
* @return the LoggerContext for the given ServletContext or {@code null} if none was set
+ * @since 2.0.1
*/
public static LoggerContext getRequiredWebLoggerContext(final ServletContext servletContext) {
final LoggerContext loggerContext = getWebLoggerContext(servletContext);
@@ -66,6 +70,7 @@ public final class WebLoggerContextUtils
*
* @param servletContext the ServletContext to get the Log4jWebLifeCycle for
* @return the Log4jWebLifeCycle for the given ServletContext
+ * @since 2.0.1
*/
public static Log4jWebLifeCycle getWebLifeCycle(final ServletContext servletContext) {
WEB_SUPPORT_LOOKUP.lock();
@@ -88,6 +93,7 @@ public final class WebLoggerContextUtils
* @param servletContext the ServletContext to locate a LoggerContext for
* @param runnable the Runnable to wrap execution for
* @return a wrapped Runnable
+ * @since 2.0.1
*/
public static Runnable wrapExecutionContext(final ServletContext servletContext, final Runnable runnable) {
return new Runnable() {