You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Ma...@Mitel.COM on 2009/07/03 02:16:37 UTC

No log4j logs after js2.0 to 2.1.3 migration?

Hi.

I have a Log4j.properties file (contents below) which lives here:

/usr/share/tomcat/webapps/portal/WEB-INF/conf/Log4j.properties

When we were using jetspeed 2 I used to get log files:

[root@server ~]# ls /usr/share/tomcat/webapps/portal/logs
content-server.log  deployment.log  digester.log  jetspeed.log  ojb.log
pluto.log  scheduler.log  velocity.log

After migration to jetspeed 2.1.3 we no longer get logs.

I could not find anything in the migration guide about having to change
this file.

Can anyone help?

/usr/share/tomcat/webapps/portal/WEB-INF/conf/Log4j.properties:

# 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: Log4j.properties 188452 2005-03-27 21:39:32Z ate $
#
# ------------------------------------------------------------------------

#
# If we don't know the logging facility, put it into the jetspeed.log
#
#
log4j.rootLogger = WARN, jetspeed

#
# Jetspeed goes into Jetspeed Log
#
log4j.category.org.apache.jetspeed = WARN, jetspeed
log4j.additivity.org.apache.jetspeed = false


log4j.category.org.apache.jetspeed.tools = WARN, jetspeed
log4j.additivity.org.apache.jetspeed.tools = false

log4j.category.org.apache.commons.digester = WARN, digester
log4j.additivity.org.apache.commons.digester = false


#
# Velocity Logfile
#
log4j.category.velocity = WARN, velocity
log4j.additivity.velocity = false

#
# OJB Logfile
#
log4j.category.org.apache.ojb= WARN, ojb
log4j.additivity.org.apache.ojb= false

#
# Scheduler Category
#
log4j.category.scheduler = WARN, scheduler
log4j.additivity.scheduler = false

#
# Pluto Category
#
log4j.category.org.apache.pluto = WARN, PLUTO, console
log4j.additivity.org.apache.pluto = false

#
# Deployment Category
#
log4j.category.deployment = WARN, DEPLOYMENT, console
log4j.additivity.deployment = false


#
# Console Category
#
log4j.category.console = WARN, console
log4j.additivity.console = false

#
# Content Server
#
log4j.category.org.apache.jetspeed.contentserver = WARN, CONTENT_SERVER
log4j.additivity.org.apache.struts = false

########################################################################
#
# Logfile definitions
#
########################################################################

#
# jetspeed.log
#
log4j.appender.jetspeed = org.apache.log4j.RollingFileAppender
log4j.appender.jetspeed.file = ${applicationRoot}/logs/jetspeed.log
log4j.appender.jetspeed.MaxFileSize=10MB
log4j.appender.jetspeed.MaxBackupIndex=1
log4j.appender.jetspeed.layout = org.apache.log4j.PatternLayout
log4j.appender.jetspeed.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.jetspeed.append = false

log4j.appender.digester = org.apache.log4j.RollingFileAppender
log4j.appender.digester.file = ${applicationRoot}/logs/digester.log
log4j.appender.digester.MaxFileSize=10MB
log4j.appender.digester.MaxBackupIndex=1
log4j.appender.digester.layout = org.apache.log4j.PatternLayout
log4j.appender.digester.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.digester.append = false

#
# pluto.log
#
log4j.appender.PLUTO = org.apache.log4j.RollingFileAppender
log4j.appender.PLUTO.file = ${applicationRoot}/logs/pluto.log
log4j.appender.PLUTO.MaxFileSize=10MB
log4j.appender.PLUTO.MaxBackupIndex=1
log4j.appender.PLUTO.layout = org.apache.log4j.PatternLayout
log4j.appender.PLUTO.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.PLUTO.append = false

#
# deployment.log
#
log4j.appender.DEPLOYMENT = org.apache.log4j.RollingFileAppender
log4j.appender.DEPLOYMENT.file = ${applicationRoot}/logs/deployment.log
log4j.appender.DEPLOYMENT.MaxFileSize=10MB
log4j.appender.DEPLOYMENT.MaxBackupIndex=1
log4j.appender.DEPLOYMENT.layout = org.apache.log4j.PatternLayout
log4j.appender.DEPLOYMENT.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.DEPLOYMENT.append = false

#
# Scheduler Output
#
log4j.appender.scheduler = org.apache.log4j.RollingFileAppender
log4j.appender.scheduler.file = ${applicationRoot}/logs/scheduler.log
log4j.appender.scheduler.MaxFileSize=10MB
log4j.appender.scheduler.MaxBackupIndex=1
log4j.appender.scheduler.layout = org.apache.log4j.PatternLayout
log4j.appender.scheduler.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.scheduler.append = false

#
# Velocity gets configured to write its output onto the velocity
# category.
#
log4j.appender.velocity = org.apache.log4j.RollingFileAppender
log4j.appender.velocity.file = ${applicationRoot}/logs/velocity.log
log4j.appender.velocity.MaxFileSize=10MB
log4j.appender.velocity.MaxBackupIndex=1
log4j.appender.velocity.layout = org.apache.log4j.PatternLayout
log4j.appender.velocity.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.velocity.append = false


log4j.appender.ojb = org.apache.log4j.RollingFileAppender
log4j.appender.ojb.file = ${applicationRoot}/logs/ojb.log
log4j.appender.ojb.MaxFileSize=10MB
log4j.appender.ojb.MaxBackupIndex=1
log4j.appender.ojb.layout = org.apache.log4j.PatternLayout
log4j.appender.ojb.layout.conversionPattern = %r [%t] %-5p %c - %m%n
log4j.appender.ojb.append = false

#
# Console
#
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.console.layout.ConversionPattern=%5p: %m%n

#
# content-server.log
#
log4j.appender.CONTENT_SERVER = org.apache.log4j.RollingFileAppender
log4j.appender.CONTENT_SERVER.file =
${applicationRoot}/logs/content-server.log
log4j.appender.CONTENT_SERVER.MaxFileSize=10MB
log4j.appender.CONTENT_SERVER.MaxBackupIndex=1
log4j.appender.CONTENT_SERVER.layout = org.apache.log4j.PatternLayout
log4j.appender.CONTENT_SERVER.layout.conversionPattern = %r [%t] %-5p %c -
%m%n
log4j.appender.CONTENT_SERVER.append = false


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org