Problem in rollover functionality.. need help

2006-02-06 Thread satya obillaneni
Hi We have a problem in maxfilesize. We set the MaxFileSize 50MB. But it is writing to the file even after the file reaches 80MB. Moreover the log4j is writing to one of the rolled over file. The configuration is log4j.rootCategory=, A1 log4j.appender.A1=org.apache.log4j.RollingFileAppender l

log4j:ERROR Attempted to append to closed appender named [null]

2006-02-06 Thread Matthias Petersen
Hi, I'm currently running log4j 1.2.8 in a Java 1.5 environment. Although I didn't change my applications, suddenly I receive the message "log4j:ERROR Attempted to append to closed appender named [null]". My source code ends with the following statements: ==

Re: chainsaw help needed

2006-02-06 Thread Paul Smith
On 07/02/2006, at 2:55 PM, Alison Ortega wrote: I set up log4j a couple of years back on my weblogic servers... xml config file, html and lf5 appenders, etc, and I was on the chainsaw site tonight http://logging.apache.org/log4j/docs/chainsaw.html and found that the links to documentation an

chainsaw help needed

2006-02-06 Thread Alison Ortega
I set up log4j a couple of years back on my weblogic servers... xml config file, html and lf5 appenders, etc, and I was on the chainsaw site tonight http://logging.apache.org/log4j/docs/chainsaw.html and found that the links to documentation and installation docs didn't take me anywhere. Can any

Re: Using Layouts with JMSAppender

2006-02-06 Thread Paul Smith
the layout in your log4j.properties is irrelevant to JMSAppender, since it is sending the serialized version of the LoggingEvent. In short, your MDB won't know what the layout is unless you tell it because that information is not sent along the wire during the JMS communication. Paul On

RE: Using Layouts with JMSAppender

2006-02-06 Thread CONNER, BRENDAN \(SBCSI\)
Right, we want to use JMSAppender to store our message in the DB. But we may want to store the formatted version of the message in our database. However, are you saying that the JMSAppender does not handle calling Layout itself? So does our MDB have to have access to our log4j.properties file an

Re: Using Layouts with JMSAppender

2006-02-06 Thread Paul Smith
In your MDB, just have an instance of a Layout and format it then. Otherwise you don't want to use JMSAppender. JMSAppender is about sending the binary contents of the LoggingEvent over JMS for some other reason (say, to view in a GUI, or store in a DB). Paul On 07/02/2006, at 11:36 AM, CO

Using Layouts with JMSAppender

2006-02-06 Thread CONNER, BRENDAN \(SBCSI\)
I finally got the JMSAppender working, and I can receive the logged message using a Message Driven Bean. While working with my example, I noticed that the message that is received by the onMessage() method is an instance of ObjectMessage, which wraps an instance of LoggingEvent. My question is: H

RE: junit for set Method with boolean input and void return

2006-02-06 Thread Bradley, Todd
> p.s. These questions might be better asked on a junit mailing > list or by picking up a unit testing book. ^^ That's what the people on the JUnit mailing list have been telling Kamal Ahmed for the past week. :-) Todd.

Re: junit for set Method with boolean input and void return

2006-02-06 Thread Curt Arnold
On Feb 6, 2006, at 11:05 AM, Kamal Ahmed wrote: Hi, I am a bit confused here, so I would appreciate a little help. I am trying to write a test for method: public final void setAcceptMatch(boolean inMatchFlag) { acceptMatch = inMatchFlag; } And here is what I have so far: public void testset

Debugging JMSAppender

2006-02-06 Thread CONNER, BRENDAN \(SBCSI\)
I'm trying to get JMSAppender working in a WebSphere 6 environment. The problem I'm currently trying to resolve is to determine why I'm getting the following error on my console: [2/6/06 10:26:50:301 CST] 0033 SystemErr R log4j:ERROR Error while activating options for appender named [JmsA

junit for set Method with boolean input and void return

2006-02-06 Thread Kamal Ahmed
Hi, I am a bit confused here, so I would appreciate a little help. I am trying to write a test for method: public final void setAcceptMatch(boolean inMatchFlag) { acceptMatch = inMatchFlag; } And here is what I have so far: public void testsetAcceptMatch() { WmLoggerFilte

Re: Tomcat -- All Logs to Syslog

2006-02-06 Thread Jacob Kjome
"commons-logging-api.jar" should be in CATALINA_HOME/bin. "commons-logging.jar" and log4j.jar should be in CATALINA_HOME/common/lib. Do *not* put "commons-logging.jar" in the "bin" directory, only "commons-logging-api.jar". Do you still have the CNFE problem? If you still do, I'm not sure what

RE: problem getting location info from client

2006-02-06 Thread Bender Heri
First, it's not a good idea to subclass the Logger class. Better write a wrapper if you want to centralize some logging policies. Your problem can be solved if you do not call the super.info() etc., but the generic log(String callerFQCN, Priority level, Object message, Throwable t) method. The

problem getting location info from client

2006-02-06 Thread kaustuva mukherjee
I have subclassed the Logger class of log4j. The problem i have is that how to get the location information when i use the subclass of the Logger class i.e XXXLogger. e.g I have the following client code where i am logging using XXXLogger public class SomeClient{ XXXLogger logger = (XXXLogger)

Re: Tomcat -- All Logs to Syslog

2006-02-06 Thread Mark F
Jacob Kjome wrote: Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? Note that is "comons-logging.jar", not "commons-logging-api.jar". Jake Quoting Mark F <[EMAIL PROTECTED]>: Version: 5.0.30 Log4j: 1.3 I'm attempting to use log4j for all of tomcat logs. I

Re: How to read the logs written using log4j

2006-02-06 Thread James Stauffer
If you want to read the log files, then look into chainsaw. You could also write the logs to two locations -- the files and to a database (for easy reading). On 2/2/06, D.V.Dayakar Rao <[EMAIL PROTECTED]> wrote: > > Hi James, > > Thank you. > > But I want to write the logs to a normal file with a

Re: Tomcat -- All Logs to Syslog

2006-02-06 Thread Mark F
Jacob Kjome wrote: Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? Note that is "comons-logging.jar", not "commons-logging-api.jar". Jake Quoting Mark F <[EMAIL PROTECTED]>: Version: 5.0.30 Log4j: 1.3 I'm attempting to use log4j for all of tomcat logs. I

RE: JmsAppender bug?

2006-02-06 Thread DeSantis, MJ Mark @ IS (7179)
Thanks Paul, I noticed when I went to figure out this patch deal that had already been done. Thanks to everyone for their help - you've made a minion java programmer keep faith in open source. Mark -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04

RE: log4j.xml vs log4j.properties

2006-02-06 Thread Bender Heri
xml is the newer development. I read once that sometimes in the future only xml will be supported. In either case, it has more possibilities, like filters. Annother point is that the autoconfiguration searches first for a xml file in the classpath, and only if it is not found it looks for a prop