You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2006/03/08 17:22:59 UTC
svn commit: r384252 - in /portals/jetspeed-2/trunk/applications: demo/
demo/src/webapp/WEB-INF/ demo/src/webapp/logs/ j2-admin/
j2-admin/src/webapp/WEB-INF/ j2-admin/src/webapp/logs/ rss/
rss/src/webapp/WEB-INF/ rss/src/webapp/logs/
Author: ate
Date: Wed Mar 8 08:22:56 2006
New Revision: 384252
URL: http://svn.apache.org/viewcvs?rev=384252&view=rev
Log:
Using the new Jetspeed web applications logging component for the Jetspeed (portlet) applications.
See: http://issues.apache.org/jira/browse/JS2-508
Added:
portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/log4j.properties
portals/jetspeed-2/trunk/applications/demo/src/webapp/logs/
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/log4j.properties
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/logs/
portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/log4j.properties
portals/jetspeed-2/trunk/applications/rss/src/webapp/logs/
Modified:
portals/jetspeed-2/trunk/applications/demo/project.xml
portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/web.xml
portals/jetspeed-2/trunk/applications/j2-admin/project.xml
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/web.xml
portals/jetspeed-2/trunk/applications/rss/project.xml
portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/web.xml
Modified: portals/jetspeed-2/trunk/applications/demo/project.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/demo/project.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/project.xml (original)
+++ portals/jetspeed-2/trunk/applications/demo/project.xml Wed Mar 8 08:22:56 2006
@@ -257,6 +257,14 @@
<war.bundle>false</war.bundle>
</properties>
</dependency>
+ <dependency>
+ <id>org.apache.portals.jetspeed-2:jetspeed-webapp-logging</id>
+ <version>${jetspeed.version}</version>
+ <type>jar</type>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
</dependencies>
</project>
Added: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/log4j.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/log4j.properties?rev=384252&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/log4j.properties (added)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/log4j.properties Wed Mar 8 08:22:56 2006
@@ -0,0 +1,44 @@
+s# Copyright 2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+#
+# Logging Configuration
+#
+# $Id:$
+#
+# ------------------------------------------------------------------------
+
+#
+# If we don't know the logging facility, put it into the pa.log
+#
+#
+log4j.rootLogger = ERROR, pa
+
+log4j.category.org.apache.jetspeed = DEBUG, pa
+log4j.additivity.org.apache.jetspeed = false
+
+########################################################################
+#
+# Logfile definitions
+#
+########################################################################
+
+#
+# pa.log
+#
+log4j.appender.pa = org.apache.log4j.FileAppender
+log4j.appender.pa.file = ${webApplicationRoot}/logs/pa.log
+log4j.appender.pa.layout = org.apache.log4j.PatternLayout
+log4j.appender.pa.layout.conversionPattern = %d [%t] %-5p %c - %m%n
+log4j.appender.pa.append = false
Modified: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/web.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/web.xml (original)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/web.xml Wed Mar 8 08:22:56 2006
@@ -20,6 +20,10 @@
<display-name>HelloWorld-DN</display-name>
<description>Hello World Description</description>
+ <listener>
+ <listener-class>org.apache.jetspeed.webapp.logging.Log4JConfigurator</listener-class>
+ </listener>
+
<servlet>
<servlet-name>JetspeedContainer</servlet-name>
<display-name>Jetspeed Container</display-name>
Modified: portals/jetspeed-2/trunk/applications/j2-admin/project.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/project.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/project.xml (original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/project.xml Wed Mar 8 08:22:56 2006
@@ -69,6 +69,14 @@
</properties>
</dependency>
<dependency>
+ <id>org.apache.portals.jetspeed-2:jetspeed-webapp-logging</id>
+ <version>${jetspeed.version}</version>
+ <type>jar</type>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
+ <dependency>
<id>org.apache.portals.jetspeed-2:jetspeed-statistics</id>
<version>${jetspeed.version}</version>
<type>jar</type>
Added: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/log4j.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/log4j.properties?rev=384252&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/log4j.properties (added)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/log4j.properties Wed Mar 8 08:22:56 2006
@@ -0,0 +1,44 @@
+s# Copyright 2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+#
+# Logging Configuration
+#
+# $Id:$
+#
+# ------------------------------------------------------------------------
+
+#
+# If we don't know the logging facility, put it into the pa.log
+#
+#
+log4j.rootLogger = ERROR, pa
+
+log4j.category.org.apache.jetspeed = DEBUG, pa
+log4j.additivity.org.apache.jetspeed = false
+
+########################################################################
+#
+# Logfile definitions
+#
+########################################################################
+
+#
+# pa.log
+#
+log4j.appender.pa = org.apache.log4j.FileAppender
+log4j.appender.pa.file = ${webApplicationRoot}/logs/pa.log
+log4j.appender.pa.layout = org.apache.log4j.PatternLayout
+log4j.appender.pa.layout.conversionPattern = %d [%t] %-5p %c - %m%n
+log4j.appender.pa.append = false
Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/web.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/web.xml (original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/web.xml Wed Mar 8 08:22:56 2006
@@ -73,6 +73,10 @@
</description>
</context-param>
+ <listener>
+ <listener-class>org.apache.jetspeed.webapp.logging.Log4JConfigurator</listener-class>
+ </listener>
+
<!-- Listener, that does all the startup work (configuration, init). -->
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
Modified: portals/jetspeed-2/trunk/applications/rss/project.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/rss/project.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/rss/project.xml (original)
+++ portals/jetspeed-2/trunk/applications/rss/project.xml Wed Mar 8 08:22:56 2006
@@ -139,5 +139,21 @@
<war.bundle>true</war.bundle>
</properties>
</dependency>
+ <dependency>
+ <id>log4j</id>
+ <version>${log4j.version}</version>
+ <type>jar</type>
+ <properties>
+ <war.bundle>${log4j.include}</war.bundle>
+ </properties>
+ </dependency>
+ <dependency>
+ <id>org.apache.portals.jetspeed-2:jetspeed-webapp-logging</id>
+ <version>${jetspeed.version}</version>
+ <type>jar</type>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
</dependencies>
</project>
Added: portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/log4j.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/log4j.properties?rev=384252&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/log4j.properties (added)
+++ portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/log4j.properties Wed Mar 8 08:22:56 2006
@@ -0,0 +1,44 @@
+s# Copyright 2004 The Apache Software Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+#
+# Logging Configuration
+#
+# $Id:$
+#
+# ------------------------------------------------------------------------
+
+#
+# If we don't know the logging facility, put it into the pa.log
+#
+#
+log4j.rootLogger = ERROR, pa
+
+log4j.category.org.apache.jetspeed = DEBUG, pa
+log4j.additivity.org.apache.jetspeed = false
+
+########################################################################
+#
+# Logfile definitions
+#
+########################################################################
+
+#
+# pa.log
+#
+log4j.appender.pa = org.apache.log4j.FileAppender
+log4j.appender.pa.file = ${webApplicationRoot}/logs/pa.log
+log4j.appender.pa.layout = org.apache.log4j.PatternLayout
+log4j.appender.pa.layout.conversionPattern = %d [%t] %-5p %c - %m%n
+log4j.appender.pa.append = false
Modified: portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/web.xml?rev=384252&r1=384251&r2=384252&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/web.xml (original)
+++ portals/jetspeed-2/trunk/applications/rss/src/webapp/WEB-INF/web.xml Wed Mar 8 08:22:56 2006
@@ -20,6 +20,10 @@
<display-name>RSS Portlet Application</display-name>
<description>Apache Portals Applications: RSS PA</description>
+ <listener>
+ <listener-class>org.apache.jetspeed.webapp.logging.Log4JConfigurator</listener-class>
+ </listener>
+
<!-- Define Velocity Servlet -->
<servlet>
<servlet-name>velocity</servlet-name>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org