hi,
I'm using DailyRollingFileAppender. Is there a way to specify the max number
of backup files to preserve?
I know we can do this for RollingFileAppender by setting the MaxBackupIndex
property. Is there something similar for DailyRollingFileAppender as well?
btw, i take back what i said
Indeed Ceki,
what I want to do is this: I would like to modify the Log4J functionality in
order for the logging methods (info, debug, warn, error and fatal) to take
more parameters (not only message and throwable). To do this I must change
multiple intern Log4J methods and the LoggingEvent
Hi,
I've got a weird problem on Win 2000/Tomcat config which *does* work under Solaris.
I'm using the following config file :
# logging DEBUG level and up - using appender 'fileout' to handle all output
log4j.rootLogger=debug, fileout
# this appender uses an output file
What a coincidence. Patricia (Pat) Guimaraes contacted me just
yesterday with a similar problem.
First, here are the standard questions:
1) Which version of the JDK are you using?
2) What platform. (OK, you already answered this one.)
3) Which version of Tomcat? Are the Tomcat versions the
Hi Ceki,
Thanks for the prompt reply.
Sorry should have specified the versions in the original mail :
1) Which version of the JDK are you using?
-- java full version 1.4.0-b92
2) What platform. (OK, you already answered this one.)
-- Win 2000 SP2
3) Which version of Tomcat? Are the Tomcat
hello,
i'm new to log4j.
i've got the following problem:
i have two webapps(app1 and app2) running under tomcat (version 3.2.1).
both apps got it's own configuration-file and both are configuered by
calling:
PropertyConfigurator.configure(strConfigfile);
both config-files look like this:
Howdy,
I had a bet with a co-worker that Sara Prigge would be the first to
respond with the jar attached. ;) ;) ;) I've been on this list for too
long ;)
Does the DailyRollingFileAppenderExt need updating for v1.2?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From:
i am trying to log4j to work with a servlet on tomcat4.0 and java1.4 on a
solaris intel machine. but when i try to call the servlet to get it to
log, i get the following message:
log4j:WARN No appenders could be found for logger (roster.TallyTest).
log4j:WARN Please initialize the log4j
Anyone have any thoughts on using the JDBC Appender vs. JMS Appender in a
J2EE environment?
Thanks,
Nate
-Original Message-
From: Steve Ebersole [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 10:01 PM
To: Log4J Users List
Subject: Re: Log4J J2EE - Best Practices
I would
ConsoleAppender does not support character encoding although adding it
should be easy. Just look at the source code of FileAppender class.
This is an omission that will be fixed for the next maintenance release of
log4j.
At 14:06 05.06.2002 +1000, you wrote:
Hi, I'm trying to make console
The problem is not in the property file, but rather that the servlet doesn't
know where to find the property file.
There are two parts - making sure the servlet reads the file, and second,
telling the servlet where to look.
1) This tells the configurator to read the property file when the
Howdy,
You're probably outputting log4j statements before the log4j system is
configured. You need to make sure you call something like
PropertyConfigurator.configure(your config file path) before making any
log4j statements. A good place to do this is in the init() method of a
servlet that you
Hi, All
I am considering using log4j in my project, which is a web-application. I
used
j2sdk1.4, servlet 2.3 and java plug in 1.4, and log4j 1.2.3. When I use
log4j to log informations in the jsp or servlet, every thing is fine, I can
write to both the console or a file in the server side.
But
It still won't remove me. Could someone PLEASE remove me??
thanks - dave
- Original Message -
From: Ceki Gülcü [EMAIL PROTECTED]
To: Log4J Users List [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 4:22 PM
Subject: Re: How do I get off this list?
Our mail server was down for a
i followed the instruction from the log4j documentation and put in my
web.xml file the following for the servlet:
servlet
servlet-nameTallyTeset/servlet-name
servlet-classroster.TallyTest/servlet-class
init-param
param-namelog4j-init-file/param-name
So, what's the normal way of setting up log4j to display locale-specific
messages? I've messed around a bit with creating a Renderer to do it, but I
haven't been able to get that to work.
The idea was to have a custom Renderer for java.lang.String, so you could
have a normal logger call like:
Try the contacts at http://apache.org/foundation/contact.html
--- David Thielen [EMAIL PROTECTED] wrote:
It still won't remove me. Could someone PLEASE remove me??
thanks - dave
- Original Message -
From: Ceki Gülcü [EMAIL PROTECTED]
To: Log4J Users List [EMAIL PROTECTED]
Could it be that there's a typo in the instructions. I notice:
To unsubscribe, send a message to:
[EMAIL PROTECTED]
^
|
|
???
-Original Message-
From: p.j.clijsters
Howdy,
public void init(ServletConfig config) throws
ServletException{
super.init(config);
prefix = getServletContext().getRealPath(/);
file = getInitParameter(log4j-init-file);
System.out.println(Prefix: + prefix);
Hi,
I am running tomcat 4.0.1 on Solaris with two web applications. I recently
added log4j code to my applications, and after reading log4j's Short
Manual,
decided to set up my configuration to use an initialization servlet to
initialize log4j, since that's the most flexible way to do it. I
This is quite similar to the problem reported by Chris Goodall a few
hours ago.
First, here are the standard questions:
1) Which version of the JDK are you using?
2) Which version of log4j?
The warning message object is not an instance of declaring class is
not very helpful. In order to get
Hello Peter,
Well, here's an example that I added to the open source Barracuda project (
http://barracuda.enhydra.org/ ). I'm attaching a zip file that
includes the web.xml and the Log4jInit servlet that the Barracuda
project uses. The nice thing with this servlet is that is sets up
Log4j
Hello friends.
I'm facing a wierd problem.
I'm using Tomcat 4.0.2 and Apache 1.3.20 on redhat 7.2 and latest log4j.
I've set the $CATALINA_OPTS=-Dlog4j.configuration=log4j.configure
I'm running two applications ABC and XYZ.
When i put log4j.configure file in WEB-INF/classes/ of ABC and
in general, i would say to use the jms appender b/c jms/messaging is an
asynchronous process and your method calling the logger to log whatever
would not have to wait for the logging operation to complete before
continuing, which i believe would be the case with a jdbc appender.
At 09:47
Hi Ceki,
This is quite similar to the problem reported by Chris Goodall a few
hours ago.
Since I just joined this mailing list, I didn't get a copy of Chris
Goodall's
message. I searched the archives, but could not find any messages sent by
him recently. Could you forward his message and
Sorry, I forgot to attach the file. Are attachments preferred over
inline text?
Pat
__
Hi Ceki,
This is quite similar to the problem reported by Chris Goodall a few
hours ago.
Since I just joined this mailing list, I didn't get a copy of Chris
Goodall's
message. I
As far as I can tell, there is only one possible explanation. You have
a copy of log4j-XXX.jar in both WEB-INF/lib of your web application as
well as on the CLASSPATH or a copy of log4j-XXX.jar is in
$JAVA_HOME/jre/lib/ext/
Remove log4j.jar from the CLASSPATH and from $JAVA_HOME/jre/lib/ext/
if
Hi All,
I am trying to use JMSAppender to handle the clustered environment issues. I
have the following doubts which if anyone of you can clarify , that would be a
big help to me.
1. How/Where do you specify the server host and port in which the queues are
defined ?
2. Should this messaging
No time to go into it all, but I took the JMSAppender that was provided
and modified it as follows :
Add appender get and set methods for properties
InitialContextFactoryName and ContextProviderURL.
In my case, they are IpiInitialContextFactory and
t3://localhost:7001 (as I am running
Ceki,
Remove log4j.jar from the CLASSPATH and from $JAVA_HOME/jre/lib/ext/
if that is the case.
If log4j.jar is not on the CLASSPATH or $JAVA_HOME/jre/lib/ext/ check
also $CATALINA_HOME/common/lib and $CATALINA_HOME/lib.
I checked my CLASSPATH and directories $JAVA_HOME/jre/lib/ext,
I was curious if anyone out there knows of an Appender extension for
JTable's?
I've looked into LumberMill, but they don't seem to have a specific Appender
class for it. Am I wrong to think that this would be fairly easy to do, and
also extremely useful? LumberMill has their own TableModel
Any idea what is the InitialContextFactory class in case of j2ee server ...
javax.naming.spi.InitialContextFactory is throwing error ...
-Original Message-
From: Scott Miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 2:09 PM
To: Log4J Users List
Subject: RE: JMSAppender
Michael -
Yes, I've just looked at that one, and previously looked at SvenReimers as
well. But, well, I was looking more for one that would compile ;) Oh, and
had a class involved that implemented Appender...unless I'm missing
something ?
-Original Message-
From: Michael Roytman
Ceki -
just looked at chainsaw, which does what my first inclination was ... just
have a socketnode notify the table(model) -- as for LF5 I decompiled a few
classes and found some classes that extend SkeletonAppender, but I really
don't want to (can't) decompile commercial code and use it in my
not a big deal but I believe LF5 was donated to apache.
checkout the src for log4j: package org.apache.log4j.lf5
rob.
- Original Message -
From: Klein, Scott @ TW [EMAIL PROTECTED]
To: 'Log4J Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 5:54 PM
Subject: RE:
ah! didn't see that.
thanks.
-Original Message-
From: Robert Hedin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 2:57 PM
To: Log4J Users List
Subject: Re: JTableAppender anyone?
not a big deal but I believe LF5 was donated to apache.
checkout the src for log4j: package
Please provide more information. What error? What app server? What
JDK? What stack trace? ...and so on.
But basically it is a factory that creates you an initial naming JNDI
naming context.
Scott
-Original Message-
From: Shunmugam, Balajee [mailto:[EMAIL PROTECTED]]
Sent:
37 matches
Mail list logo