Hi,

I have someone using my T2.3 app and they have moved it to a new server. The
logging worked fine on the old server (Windows 2000 Server) but not on the
new server (Win 2003 Server). We have been over the configuration of the
Logging several times and can see no problems (the directory structure and
environment variables (CATALINA_HOME and JAVA_HOME) are identical).

Here is the content of the Log4j.properties

-------------------------------------------------------------------->


# ------------------------------------------------------------------------
#
# Logging Configuration
#
# $Id: Log4j.properties,v 1.3 2003/06/20 00:10:22 henning Exp $
#
# ------------------------------------------------------------------------

applicationRoot = d:/Apps/tdk/webapps/transformer

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

#
# Turbine goes into Turbine Log
#
log4j.category.org.apache.turbine = INFO, turbine
log4j.additivity.org.apache.turbine = true

#
# Velocity Logfile
#
log4j.category.org.apache.velocity = INFO, velocity
log4j.additivity.velocity = false

#
# Rwtransform Logfile
#
log4j.category.com.stpenable.transformer = DEBUG, transformer
log4j.additivity.transformer = false

#
# Avalon Logfile
#
log4j.category.org.apache.avalon = INFO, avalon
log4j.additivity.avalon = false

#
# Scheduler Category
#
log4j.category.org.quartz = INFO, scheduler
log4j.additivity.scheduler = false
log4j.logger.org.quartz=WARN

#
# Jelly Category
#
log4j.category.org.jelly = DEBUG, jelly
log4j.additivity.jelly = false


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

#
# turbine.log
#
log4j.appender.turbine = org.apache.log4j.RollingFileAppender
log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
log4j.appender.turbine.MaxFileSize = 1024KB
log4j.appender.turbine.MaxBackupIndex = 5
log4j.appender.turbine.layout = org.apache.log4j.PatternLayout
log4j.appender.turbine.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.turbine.append = false

#
# Scheduler Output
#
log4j.appender.scheduler = org.apache.log4j.FileAppender
log4j.appender.scheduler.file = ${applicationRoot}/logs/quartz.log
log4j.appender.scheduler.layout = org.apache.log4j.PatternLayout
log4j.appender.scheduler.layout.conversionPattern = %d [%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.FileAppender
log4j.appender.velocity.file = ${applicationRoot}/logs/velocity.log
log4j.appender.velocity.layout = org.apache.log4j.PatternLayout
log4j.appender.velocity.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.velocity.append = false

#
# RwTransform gets configured to write its output onto the its own
# category.
#
log4j.appender.transformer = org.apache.log4j.RollingFileAppender
log4j.appender.transformer.file = ${applicationRoot}/logs/transformer.log
log4j.appender.transformer.MaxFileSize = 1024KB
log4j.appender.transformer.MaxBackupIndex = 20
log4j.appender.transformer.layout = org.apache.log4j.PatternLayout
log4j.appender.transformer.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.transformer.append = false

#
# Avalon gets configured to write its output onto the avalon
# category.
#
log4j.appender.avalon = org.apache.log4j.FileAppender
log4j.appender.avalon.file = ${applicationRoot}/logs/avalon.log
log4j.appender.avalon.layout = org.apache.log4j.PatternLayout
log4j.appender.avalon.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.avalon.append = false

#
# Jelly gets configured to write its output onto its own
# category.
#
log4j.appender.jelly = org.apache.log4j.FileAppender
log4j.appender.jelly.file = ${applicationRoot}/logs/jelly.log
log4j.appender.jelly.layout = org.apache.log4j.PatternLayout
log4j.appender.jelly.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.jelly.append = false
<---------------------------------------------------------------------------
-----------

This file is in .../WEB-INF/classes so it is on the classpath

The TurbineResources.properties has the following line

log4j.file = /WEB-INF/classes/Log4j.properties

and the WEB-INF/CONF has a commons-logginf.properties fiel with the
following 2 line sin it

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4JF
actoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

Ideas?

Logging is the worse part of Turbine, cinfig is flaky as hell in my
experience. I tried to work out how it worked and failed so cannot
contribute patches unfortunately.

Regards,

David Wynter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to