You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by as...@apache.org on 2017/07/14 19:21:48 UTC
[5/6] portals-pluto git commit: PLUTO-663 Migrate Portlet 3.0 TCK
from java.util.logging to SLF4J (code review)
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/java/javax/portlet/tck/portlets/PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/java/javax/portlet/tck/portlets/PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.java b/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/java/javax/portlet/tck/portlets/PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.java
index 8b0febd..de24bda 100644
--- a/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/java/javax/portlet/tck/portlets/PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.java
+++ b/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/java/javax/portlet/tck/portlets/PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.java
@@ -48,9 +48,7 @@ import static javax.portlet.tck.constants.Constants.QUERY_STRING;
*/
public class PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event
implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+ private final Logger LOGGER = LoggerFactory.getLogger(PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event.class);
private PortletConfig portletConfig = null;
@@ -65,7 +63,7 @@ public class PortletTagLibraryTests_SPEC2_26_IncludeJSPEvent_event
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2PortletTagLibraryTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTagLibraryTests2/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTagLibraryTests2/src/main/resources/log4j.properties b/portlet-tck_3.0/V2PortletTagLibraryTests2/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2PortletTagLibraryTests2/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2PortletTagLibraryTests2/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTagLibraryTests3/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTagLibraryTests3/src/main/resources/log4j.properties b/portlet-tck_3.0/V2PortletTagLibraryTests3/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2PortletTagLibraryTests3/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2PortletTagLibraryTests3/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
index 8b4084d..61fb345 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_EventPortlet_ApiEvent_event.java
@@ -51,9 +51,8 @@ import org.slf4j.LoggerFactory;
*/
public class PortletTests_EventPortlet_ApiEvent_event
implements Portlet, EventPortlet {
- private static final String LOG_CLASS = PortletTests_EventPortlet_ApiEvent_event.class
- .getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(PortletTests_EventPortlet_ApiEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -67,7 +66,7 @@ public class PortletTests_EventPortlet_ApiEvent_event
@Override
public void processAction(ActionRequest portletReq,
ActionResponse portletResp) throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
index 2c98a7a..61c692c 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent.java
@@ -59,9 +59,10 @@ import org.slf4j.LoggerFactory;
*
*/
public class PortletTests_Event_ApiEvent implements Portlet {
- private static final String LOG_CLASS = PortletTests_Event_ApiEvent.class.getName();
+
@SuppressWarnings("unused")
-private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+ private final Logger LOGGER = LoggerFactory.getLogger(PortletTests_Event_ApiEvent.class);
+
private PortletConfig portletConfig = null;
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
index 2018d41..c5ad342 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Event_ApiEvent_event.java
@@ -60,10 +60,9 @@ import org.slf4j.LoggerFactory;
*/
public class PortletTests_Event_ApiEvent_event
implements Portlet, EventPortlet {
- private static final String LOG_CLASS = PortletTests_Event_ApiEvent_event.class
- .getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
- private PortletConfig portletConfig = null;
+
+ private final Logger LOGGER = LoggerFactory.getLogger(PortletTests_Event_ApiEvent_event.class);
+ private PortletConfig portletConfig = null;
@Override
public void init(PortletConfig config) throws PortletException {
@@ -77,7 +76,7 @@ public class PortletTests_Event_ApiEvent_event
@Override
public void processAction(ActionRequest portletReq,
ActionResponse portletResp) throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2PortletTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2PortletTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2PortletTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
index 8dc3d03..6dd08c3 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ActionRequest_ApiAction.java
@@ -60,11 +60,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ActionRequest_ApiAction.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_ActionRequest_ApiAction.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -78,7 +75,7 @@ public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceSe
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -109,7 +106,7 @@ public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceSe
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -120,7 +117,7 @@ public class RequestTests_ActionRequest_ApiAction implements Portlet, ResourceSe
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
index 1119316..ba5bc79 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
@@ -78,11 +78,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_ClientDataRequest_ApiAction implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ClientDataRequest_ApiAction.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_ClientDataRequest_ApiAction.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -96,7 +93,7 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
@@ -420,18 +417,16 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
-
-
}
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
index 1e7bc8f..66818de 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent.java
@@ -55,11 +55,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_EventRequest_ApiEvent implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_EventRequest_ApiEvent.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_EventRequest_ApiEvent.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -73,7 +70,7 @@ public class RequestTests_EventRequest_ApiEvent implements Portlet, ResourceServ
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -89,7 +86,7 @@ public class RequestTests_EventRequest_ApiEvent implements Portlet, ResourceServ
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -101,7 +98,7 @@ public class RequestTests_EventRequest_ApiEvent implements Portlet, ResourceServ
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
index c4dd7ed..857a802 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
@@ -56,11 +56,8 @@ import org.slf4j.LoggerFactory;
* but does not publish them. Events are published in the main portlet for the test cases.
*/
public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_EventRequest_ApiEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_EventRequest_ApiEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -74,7 +71,7 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
QName eventQName = new QName(TCKNAMESPACE,
"PortletTests_Event_ApiEvent");
portletResp.setEvent(eventQName, "Hi!");
@@ -83,13 +80,13 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion serveResource - ERROR!!");
+ LOGGER.trace("event companion serveResource - ERROR!!");
}
@Override
public void processEvent(EventRequest portletReq, EventResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processEvent");
+ LOGGER.trace("event companion processEvent");
portletResp.setRenderParameters(portletReq);
@@ -137,7 +134,7 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion render");
+ LOGGER.trace("event companion render");
portletResp.setContentType("text/html");
PrintWriter writer = portletResp.getWriter();
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
index 93b9470..b66c43e 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiAction.java
@@ -169,11 +169,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_ApiAction.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_PortletRequest_ApiAction.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -187,7 +184,7 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -1273,7 +1270,7 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -1285,7 +1282,7 @@ public class RequestTests_PortletRequest_ApiAction implements Portlet, ResourceS
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
index 040cc87..779217d 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent.java
@@ -151,11 +151,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_PortletRequest_ApiEvent implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_ApiEvent.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_PortletRequest_ApiEvent.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -169,7 +166,7 @@ public class RequestTests_PortletRequest_ApiEvent implements Portlet, ResourceSe
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -185,7 +182,7 @@ public class RequestTests_PortletRequest_ApiEvent implements Portlet, ResourceSe
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -197,7 +194,7 @@ public class RequestTests_PortletRequest_ApiEvent implements Portlet, ResourceSe
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
index 594d169..bf03681 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiEvent_event.java
@@ -162,10 +162,8 @@ import org.slf4j.LoggerFactory;
* but does not publish them. Events are published in the main portlet for the test cases.
*/
public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_ApiEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_PortletRequest_ApiEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -179,19 +177,19 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion serveResource - ERROR!!");
+ LOGGER.trace("event companion serveResource - ERROR!!");
}
@Override
public void processEvent(EventRequest portletReq, EventResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processEvent");
+ LOGGER.trace("event companion processEvent");
portletResp.setRenderParameters(portletReq);
@@ -1265,7 +1263,7 @@ public class RequestTests_PortletRequest_ApiEvent_event implements Portlet, Even
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion render");
+ LOGGER.trace("event companion render");
portletResp.setContentType("text/html");
PrintWriter writer = portletResp.getWriter();
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
index 014f735..975c0a8 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiRender.java
@@ -164,13 +164,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_ApiRender.class.getName();
-
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_PortletRequest_ApiRender.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -184,7 +179,7 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -195,7 +190,7 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -205,7 +200,7 @@ public class RequestTests_PortletRequest_ApiRender implements Portlet, ResourceS
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
index bef7460..01fd42a 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_PortletRequest_ApiResource.java
@@ -166,11 +166,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_PortletRequest_ApiResource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_PortletRequest_ApiResource.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_PortletRequest_ApiResource.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -184,7 +181,7 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -197,7 +194,7 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -1282,7 +1279,7 @@ public class RequestTests_PortletRequest_ApiResource implements Portlet, Resourc
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
index 90470ba..1b931a5 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_RenderRequest_ApiRender.java
@@ -54,11 +54,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_RenderRequest_ApiRender.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_RenderRequest_ApiRender.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -72,7 +69,7 @@ public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceSe
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -85,7 +82,7 @@ public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceSe
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -97,7 +94,7 @@ public class RequestTests_RenderRequest_ApiRender implements Portlet, ResourceSe
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
index 1d19545..8a14a43 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ResourceRequest_ApiResource.java
@@ -69,10 +69,8 @@ import org.slf4j.LoggerFactory;
*
*/
public class RequestTests_ResourceRequest_ApiResource implements Portlet, ResourceServingPortlet {
- private static final String LOG_CLASS =
- RequestTests_ResourceRequest_ApiResource.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
-
+
+ private final Logger LOGGER = LoggerFactory.getLogger(RequestTests_ResourceRequest_ApiResource.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -86,7 +84,7 @@ public class RequestTests_ResourceRequest_ApiResource implements Portlet, Resour
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet processAction entry");
+ LOGGER.trace("main portlet processAction entry");
portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
@@ -99,7 +97,7 @@ public class RequestTests_ResourceRequest_ApiResource implements Portlet, Resour
@Override
public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet serveResource entry");
+ LOGGER.trace("main portlet serveResource entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -224,7 +222,7 @@ public class RequestTests_ResourceRequest_ApiResource implements Portlet, Resour
@Override
public void render(RenderRequest portletReq, RenderResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " main portlet render entry");
+ LOGGER.trace("main portlet render entry");
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2RequestTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2RequestTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2RequestTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2ResponseTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2ResponseTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsAction/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsAction/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsAction/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsAction/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsAction/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEnv/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEnv/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsEnv/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsEnv/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsEnv/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventRequest_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventRequest_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventRequest_SIGEvent_event.java
index 5c454d8..03e2730 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventRequest_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventRequest_SIGEvent_event.java
@@ -56,9 +56,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* but does not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_EventRequest_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_EventRequest_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_EventRequest_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -71,7 +70,7 @@ public class SigTestsEvent_EventRequest_SIGEvent_event implements Portlet, Event
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventResponse_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventResponse_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventResponse_SIGEvent_event.java
index 6badda9..6e264b7 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventResponse_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_EventResponse_SIGEvent_event.java
@@ -53,9 +53,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* but does not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_EventResponse_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_EventResponse_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_EventResponse_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -68,7 +67,7 @@ public class SigTestsEvent_EventResponse_SIGEvent_event implements Portlet, Even
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_Event_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_Event_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_Event_SIGEvent_event.java
index 3b4618e..d179aa4 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_Event_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_Event_SIGEvent_event.java
@@ -55,9 +55,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* but does not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_Event_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_Event_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_Event_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {
@@ -70,13 +69,13 @@ public class SigTestsEvent_Event_SIGEvent_event implements Portlet, EventPortlet
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
public void processEvent(EventRequest portletReq, EventResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processEvent");
+ LOGGER.trace("event companion processEvent");
portletResp.setRenderParameters(portletReq);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletRequest_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletRequest_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletRequest_SIGEvent_event.java
index e0273c9..83e1ce6 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletRequest_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletRequest_SIGEvent_event.java
@@ -142,9 +142,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_PortletRequest_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_PortletRequest_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_PortletRequest_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {}
@@ -155,7 +154,7 @@ public class SigTestsEvent_PortletRequest_SIGEvent_event implements Portlet, Eve
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletResponse_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletResponse_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletResponse_SIGEvent_event.java
index 146c371..cf68b32 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletResponse_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_PortletResponse_SIGEvent_event.java
@@ -60,9 +60,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_PortletResponse_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_PortletResponse_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_PortletResponse_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {}
@@ -73,7 +72,7 @@ public class SigTestsEvent_PortletResponse_SIGEvent_event implements Portlet, Ev
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_StateAwareResponse_SIGEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_StateAwareResponse_SIGEvent_event.java b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_StateAwareResponse_SIGEvent_event.java
index d0a06df..db44694 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_StateAwareResponse_SIGEvent_event.java
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/java/javax/portlet/tck/portlets/SigTestsEvent_StateAwareResponse_SIGEvent_event.java
@@ -74,9 +74,8 @@ import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
* not publish them. Events are published in the main portlet for the test cases.
*/
public class SigTestsEvent_StateAwareResponse_SIGEvent_event implements Portlet, EventPortlet {
- private static final String LOG_CLASS =
- SigTestsEvent_StateAwareResponse_SIGEvent_event.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(SigTestsEvent_StateAwareResponse_SIGEvent_event.class);
@Override
public void init(PortletConfig config) throws PortletException {}
@@ -87,7 +86,7 @@ public class SigTestsEvent_StateAwareResponse_SIGEvent_event implements Portlet,
@Override
public void processAction(ActionRequest portletReq, ActionResponse portletResp)
throws PortletException, IOException {
- LOGGER.info(LOG_CLASS + " event companion processAction - ERROR!!");
+ LOGGER.trace("event companion processAction - ERROR!!");
}
@Override
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsEvent/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsEvent/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsEvent/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsEvent/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsEvent/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsException/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsException/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsException/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsException/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsException/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsFilter/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsFilter/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsFilter/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsRender/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsRender/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsRender/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsRender/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsRender/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsResource/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsResource/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsResource/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsResource/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsResource/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsURL/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsURL/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsURL/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsURL/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsURL/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2SigTestsWrapper/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsWrapper/src/main/resources/log4j.properties b/portlet-tck_3.0/V2SigTestsWrapper/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2SigTestsWrapper/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2SigTestsWrapper/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2URLTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2URLTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2URLTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2URLTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V2WrapperTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V2WrapperTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V2WrapperTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3AnnotationPortletArtifactValidityTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3AnnotationPortletArtifactValidityTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V3AnnotationPortletArtifactValidityTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V3AnnotationPortletArtifactValidityTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V3AnnotationPortletArtifactValidityTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3PortletConfigTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3PortletConfigTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V3PortletConfigTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V3PortletConfigTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V3PortletConfigTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3PortletContextTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3PortletContextTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V3PortletContextTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V3PortletContextTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V3PortletContextTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3ResourceAsyncTests/src/main/java/javax/portlet/tck/portlets/ResourceAsyncTests_SPEC_21_Async.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3ResourceAsyncTests/src/main/java/javax/portlet/tck/portlets/ResourceAsyncTests_SPEC_21_Async.java b/portlet-tck_3.0/V3ResourceAsyncTests/src/main/java/javax/portlet/tck/portlets/ResourceAsyncTests_SPEC_21_Async.java
index 48b6a7f..9332218 100644
--- a/portlet-tck_3.0/V3ResourceAsyncTests/src/main/java/javax/portlet/tck/portlets/ResourceAsyncTests_SPEC_21_Async.java
+++ b/portlet-tck_3.0/V3ResourceAsyncTests/src/main/java/javax/portlet/tck/portlets/ResourceAsyncTests_SPEC_21_Async.java
@@ -1488,7 +1488,7 @@ public class ResourceAsyncTests_SPEC_21_Async implements Portlet, ResourceServin
/* was called has returned to the container" */
} else if (testcase.equals(V3RESOURCEASYNCTESTS_SPEC_21_ASYNC_ADDLISTENER2)) {
boolean isDispatched = new Boolean((String) session.getAttribute(V3RESOURCEASYNCTESTS_SPEC_21_ASYNC_ADDLISTENER2));
- LOGGER.trace("isDispatched: " + isDispatched);
+ LOGGER.trace("isDispatched: {}", isDispatched);
if (isDispatched) {
// 2nd time thru
session.removeAttribute(V3RESOURCEASYNCTESTS_SPEC_21_ASYNC_ADDLISTENER2);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3ResourceAsyncTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3ResourceAsyncTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V3ResourceAsyncTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V3ResourceAsyncTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V3ResourceAsyncTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/V3URLTests/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V3URLTests/src/main/resources/log4j.properties b/portlet-tck_3.0/V3URLTests/src/main/resources/log4j.properties
index f9323c7..e4aeed6 100644
--- a/portlet-tck_3.0/V3URLTests/src/main/resources/log4j.properties
+++ b/portlet-tck_3.0/V3URLTests/src/main/resources/log4j.properties
@@ -1,3 +1,23 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+######################################################################
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
index 1d1608e..2d1c145 100644
--- a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/beans/ClassChecker.java
@@ -35,8 +35,7 @@ import org.slf4j.LoggerFactory;
* @author nick
*/
public class ClassChecker {
- private static final String LOG_CLASS = ClassChecker.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+ private final Logger LOGGER = LoggerFactory.getLogger(ClassChecker.class);
private Class<?> cut;
private ArrayList<Class<?>> ifList;
@@ -234,14 +233,10 @@ public class ClassChecker {
HashSet<Class<?>> mexs = new HashSet<Class<?>>();
mexs.addAll(Arrays.asList(m.getExceptionTypes()));
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " hasMethod: added exception types");
- }
+ LOGGER.trace("hasMethod: added exception types");
if (exParm.isEmpty() && mexs.isEmpty()) {
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " hasMethod: no exceptions to check");
- }
+ LOGGER.trace("hasMethod: no exceptions to check");
result = true;
} else {
result = mexs.containsAll(exParm);
@@ -251,7 +246,7 @@ public class ClassChecker {
sb.append("results of exception check: ").append(result).append("\n");
sb.append("method exceptions: ").append(mexs).append("\n");
sb.append("expected exceptions: ").append(exParm).append("\n");
- LOGGER.warn(LOG_CLASS + " hasMethod: " + sb.toString());
+ LOGGER.warn("hasMethod: {}", sb);
}
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/8cb2fa55/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/portlets/TestPortlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/portlets/TestPortlet.java b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/portlets/TestPortlet.java
index 897fb4c..0fef5ed 100644
--- a/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/portlets/TestPortlet.java
+++ b/portlet-tck_3.0/common/src/main/java/javax/portlet/tck/portlets/TestPortlet.java
@@ -36,38 +36,29 @@ import org.slf4j.LoggerFactory;
* Simplest possible portlet for testing the portlet container implementation
*/
public class TestPortlet implements Portlet {
- private static final String LOG_CLASS = TestPortlet.class.getName();
- private final Logger LOGGER = LoggerFactory.getLogger(LOG_CLASS);
+
+ private final Logger LOGGER = LoggerFactory.getLogger(TestPortlet.class);
public TestPortlet() {
}
@Override
public void init(PortletConfig config) throws PortletException {
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " init: Entry");
- }
-
+ LOGGER.trace("init: Entry");
}
@Override
public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, IOException {
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " processAction: Entry");
- }
-
-
+ LOGGER.trace("processAction: Entry");
}
@Override
public void render(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " render: Entry");
- }
+ LOGGER.trace("render: Entry");
PrintWriter writer = response.getWriter();
writer.write("I am here!");
@@ -76,11 +67,7 @@ public class TestPortlet implements Portlet {
@Override
public void destroy() {
-
- if (LOGGER.isTraceEnabled()) {
- LOGGER.trace(LOG_CLASS + " destroy: Entry");
- }
-
+ LOGGER.trace("destroy: Entry");
}
}