Log4j Unix file deletion.....

2009-02-20 Thread Chandresh Turakhia
Dear all : We have requirement that all logs should be written. If someone deletes the files; No exception is thrown. We use DailyRollyingFileAppender. Can some one plz guide me on the issue. What I noticed is QuietWriter.write method does not throw IOexception. Problem may be due to unix. BUT

prevent throttling of logs

2009-02-20 Thread Frank Kim
In our production system, we log to the file system and to the DB. In the event of a catastrophic failure in olmApp the same error gets logged over and over again to not only the server.log file, but also to the db. To prevent us from filling the disk on either the app server or the db server, we

Re: Error on log4j

2009-02-20 Thread Tuan Quan
Thanks, Douglas, the debug files showed a problem finding a file. It worked now. thanks. tuan, From: Douglas E Wegscheid To: Log4J Users List Sent: Friday, February 20, 2009 11:31:11 AM Subject: Re: Error on log4j could the path for log4j.configuration be  wr

Re: Warning using rollingPolicy in log4j.xml configuration file

2009-02-20 Thread Antonio Angelino
Thenk you Jacob, everything works correctly. Kind Regards, Antonio. 2009/2/20 Jacob Kjome > You are using the older RollingFileAppender. You need to use the one in > the log4j-extras package... > > > > org.apache.log4j.rolling.RollingFileAppender > > > Jake > > > On Fri, 20 Feb 2009 19:22:0

Re: Warning using rollingPolicy in log4j.xml configuration file

2009-02-20 Thread Jacob Kjome
You are using the older RollingFileAppender.  You need to use the one in the log4j-extras package... org.apache.log4j.rolling.RollingFileAppender Jake On Fri, 20 Feb 2009 19:22:08 +0100 Antonio Angelino wrote: Hello, I am a new user of log4j package and I have a problem using rollingPol

Re: Error on log4j

2009-02-20 Thread Douglas E Wegscheid
could the path for log4j.configuration be wrong, and it can't find your config. add -Dlog4j.debug=true, and it will tell you how it's loading it's config. btw, you can only have one configuration. are you trying to use both log4j.xsl.properties and log4j.pdf.properties? Douglas E Wegscheid Le

Warning using rollingPolicy in log4j.xml configuration file

2009-02-20 Thread Antonio Angelino
Hello, I am a new user of log4j package and I have a problem using rollingPolicy, this is the warning message: *log4j:WARN Unrecognized element rollingPolicy* JAR included in buid path: - log4j-1.2.15.jar - apache-log4j-extras-1.0.jar - commons-logging-1.1.1.jar - commons-logging-adapters-1.1

Error on log4j

2009-02-20 Thread Tuan Quan
Anyone knows why i got the log4j WARN below. thanks.  log4j:WARN No appenders could be found for logger (org.apache.fop.render.RendererFactory).  log4j:WARN Please initialize the log4j system properly.   log4j included in classpath, and the jar file is there.   The script to call log4j is below:

Re: Filtering duplicated log-messages

2009-02-20 Thread Jacob Kjome
On Fri, 20 Feb 2009 12:27:32 -0500 Curt Arnold wrote: Since the timestamps are different, I don't think it is one event being appended multiple times which is what I think Jacob suspects. You're right Curt.  I had on blinders.  You see one problem enough times and you presume that the nex

Re: Filtering duplicated log-messages

2009-02-20 Thread Curt Arnold
Since the timestamps are different, I don't think it is one event being appended multiple times which is what I think Jacob suspects. You'd want to add a filter to the appender, but there is not a built in filter that does what you want. Not quite what you are looking for but search the arc

Re: Filtering duplicated log-messages

2009-02-20 Thread Jacob Kjome
Which "log-file"?  server.log or netcool.log?  Or is it showing up in all appenders output?  Also, can you change it to?... %d{ABSOLUTE} %-5p [%c] %m [%t %x %l]%n Notice the change from %c{1} to %c And let me know the output? Jake On Fri, 20 Feb 2009 17:46:58 +0200 "Surovtsev, Dmytro" wro

RE: Filtering duplicated log-messages

2009-02-20 Thread Surovtsev, Dmytro
I have changed pattern from: log4j.appender.NETCOOL.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n to: log4j.appender.NETCOOL.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m [%t %x %l]%n And immediately got the following in log-file: 07:42:55,133 DEBUG [Debug] Thread[SynchronousM

Re: Filtering duplicated log-messages

2009-02-20 Thread Jacob Kjome
So, which logger is actually providing the debug output?  What is it's name?  I still can't see how any of your appenders are providing that output?  All appenders use... %d{ABSOLUTE} %-5p [%c{1}] %m%n Your output looks like... 23:06:31,110 DEBUG [Debug] Thread[SynchronousMessageProcessor,5