Hi Henning,
I get it at run-time. I have 2 projects under what was my TDK2.2 directory's
webapp directorys. I have replaced the full set of files under WEB-INF\lib
with those for T2.3 dev. I have updated the TR.props and used the
log4j.props file you gave me. I have made all the changes in the Wiki on
migrating from T2.2 to T2.3.
When I set up the log4j.props to be identical for each of the 2 projects I
have then I get 2 sets of error messages. When I leave one of the
log4j.props as an empty file then I only get one set of error messages. So
it is these instances starting up that are causing the problem.
I looked up the FAQ at Log4J and it says of this error message:-
"Log4j does not have a default logging target. It is the user's
responsibility to ensure that all categories can inherit an appender. This
can be easily achieved by attaching an appender to the root category."
And yet here is the top part of the log4j.properties
log4j.rootLogger = INFO, turbine
So then I removed all traces of the turbine appender and replaced it with
"Default", the whole log4j.props shown
# Currently, we use Log4J for all logging
#
#
# If we don't know the logging facility, put it into the
# turbine.log
#
log4j.rootLogger = DEBUG, Default
# Setup Default Appender
log4j.appender.Default=org.apache.log4j.RollingFileAppender
log4j.appender.Default.File=default.log
log4j.appender.Default.MaxFileSize=2000KB
log4j.appender.Default.MaxBackupIndex=5
log4j.appender.Default.layout=org.apache.log4j.PatternLayout
log4j.appender.Default.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss}
[%-5p] %c{1} - %m%n
I get exactly the same error message as before! Which makes nme think itis
the way the Turbine code is calling a fro an appender, Th elog4j.properties
refers to "log4j.category.org.apache.turbine = INFO, turbine" the error
messase refers to log4j.category.org.apache.turbine.Turbine", note th
eTurbine on the end.
So now I am a little confused about how the LogFactory works. If I have
public class EntityListTool implements ApplicationTool {
static {
final Log sLogger = LogFactory.getLog(EntityListTool.class);
}
....
where it is com.stpenable.stpsite.util.pulltool.EntityListTool
I'd expect I needed a entry in log4j.props as shown
#
# turbine.log
#
log4j.category.com.stpenable.stpsite.util.pulltool.EntityListTool = INFO,
EntityListTool
log4j.additivity.org.apache.EntityListTool = falselog4j.appender.turbine =
org.apache.log4j.FileAppender
log4j.appender.EntityListTool .file = ${applicationRoot}/logs/turbine.log
log4j.appender.EntityListTool .layout = org.apache.log4j.PatternLayout
log4j.appender.EntityListTool .layout.conversionPattern = %d [%t] %-5p %c -
%m%n
log4j.appender.EntityListTool .append = false
Is that correct?
If it is then shouldn't the turbine log4j.props entry be
log4j.category.org.apache.turbine.Turbine = INFO, turbine
log4j.additivity.org.apache.turbine.Turbine = false
log4j.appender.turbine = org.apache.log4j.FileAppender
log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
log4j.appender.turbine.layout = org.apache.log4j.PatternLayout
log4j.appender.turbine.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.turbine.append = false
????
Thanks
David
-----Original Message-----
From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 09:06
To: [EMAIL PROTECTED]
Subject: Re: T2.3 dev logging setup
"David Wynter" <[EMAIL PROTECTED]> writes:
Do you get this warning at _run_time or at _compile_time?
Regards
Henning
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]