Antw: RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Frank-Olaf Lohmann
Dear skk, Reading your XML file I do not see you use AsyncAppender but I see you still use two files to log to. As Ceki mentioned with an extra task for writing the messages you burden the job to someone else. To extend the analogue Ceki used the job is still in the office (CPU) and it may deg

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Ceki Gülcü
Comments below. At 18:05 04.09.2002 -0700, sk k wrote: >Hi, > >I did the test with AsyncAppender using an xml config >file(set the buff size to 1000 even though default >size of 128 should be sufficient. My logger uses a >size of like 60 ) and it seems the performance isn't >any better. Infact

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread sk k
Hi, I did the test with AsyncAppender using an xml config file(set the buff size to 1000 even though default size of 128 should be sufficient. My logger uses a size of like 60 ) and it seems the performance isn't any better. Infact the performance dropped a little and it seems to vaildate the As

Re: compile under jdk1.1?

2002-09-04 Thread Ceki Gülcü
The MDC class depends on JDK 1.2 at compile-time. At runtime, it will not do anything under JDK 1.1 (it won't work but it won't harm your application either). Other than that lf5, chainsaw depend on JDK 1.2 or more precisely swing. The TelnetAppender and JDBCAppender also depend on JDK 1.2. At

compile under jdk1.1?

2002-09-04 Thread John S. Churchill
I have a pressing need to integrate log4j into jdk 1.1, meaning that I need the source code to be compiled along with the rest of the system. (Setting a classpath or Including the precompiled class files is not an option, unfortunately.) I have been tinkering with surgically removing any java

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Richard Doust
It's probably counter-productive, but I just have to chime in here. I too have been highly entertained by this exchange. My compliments to those who manage to respond in a level-headed fashion! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Shapira, Yoav
>>Are there any plans to re-write log4j (any next >>generation version). It seems that log4j needs >>an architectural change rather than anything else. > >I wouldn't jump the gun if I were you. :-) Hi, Though you have to love it when someone uses a mature, popular system for a few days, then prom

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Ceki Gülcü
At 11:13 04.09.2002 -0700, you wrote: >I made the changes mentioned and still the performance >has increased by only 10-50% but still my custom >logger >results are ahead of log4j. Do the test with a AsyncAppender BufferSize of 20'000. You'll be logging at "no time" at all. (This statement is ve

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread sk k
I made the changes mentioned and still the performance has increased by only 10-50% but still my custom logger results are ahead of log4j. Also measured the cpu and memory and it seems my custom logger is consuming lesser values since formatting and writing to file is done in the background. I

Re: JMX

2002-09-04 Thread sk k
Log4j has pretty decent facilities to manage the logging pieces like changing logging levels, changing logging format, appenders etc. As u said, it is still in nascent stage and I also remember Ceki posting a request for developers to enhance JMX. I am currently testing log4j integration wi

rc.d scripts for socket server

2002-09-04 Thread Ken Arnold
Before I re-invent this particular wheel, does someone have an /etc/rc.d script for starting up the socket server (for RedHat Linux in my case, but any starting point could help)? Ken -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Unexpected Exception launching through Ant

2002-09-04 Thread Ceki Gülcü
I beg to differ. You probably recompiled in the upgrade process. If you go back to 1.2.5 the problem will still be "solved". The difference between 1.2.6 and 1.2.5 cannot cause a java.lang.VerifyError exception. At least not in a rational world. Nevertheless, thanks for reporting back. At 09:14

Re: JMX

2002-09-04 Thread ryan . cuprak
While I am not familiar with the JMX capabilities of log4j, I am using the jmx facilities of jboss to manage logj logging of my EJBs and eventually servlets. -Ryan "Craig Smith" <[EMAIL PROTECTED]> 09/04/2002 10:14 AM Please respond to "Log4J Users List" To: <[EMAIL PROT

RE: Unexpected Exception launching through Ant

2002-09-04 Thread John Muhlestein
I upgraded from 1.2.5 to 1.2.6 and the problem resolved itself. > -Original Message- > From: John Muhlestein [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 4:48 PM > To: '[EMAIL PROTECTED]' > Subject: Unexpected Exception launching through Ant > > > I am attempting to la

Re: Problems with Xalan/Xerces using Log4J 1.2.3 withWebSphere 4.01

2002-09-04 Thread Craig Smith
I think you were on the right track. But just because you have xerces and xalan in the WEB-INF/lib directory doesn't mean log4j.jar will find it there. If the log4j.jar is placed in the "lib/app" directory as you described, it will not be loaded by the module classloader. Instead the Applica

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Bhangale, Bhushan
Mine is a standalone application. I guess I may also get the same kind of errors when time goes by. At present I am into development phase so may not be getting that error. May be in long run I will get. I will keep my application started today nite with series of log getting generated from the co

Re: Problems with Xalan/Xerces using Log4J 1.2.3 with WebSphere 4.01

2002-09-04 Thread Tom Marsh
Markus: Manifest-Version: 1.0 Class-Path: jdom.jar log4j-1.2rc1.jar xerces.jar > > Hi Tom, > > could you send me the classpath settings of your manifest.mf, so I'm sure I > test with the same configuration. > > Thanks, > Markus. > > > >

Re: Problems with Xalan/Xerces using Log4J 1.2.3 with WebSphere 4.01

2002-09-04 Thread M . Langenbahn
Hi Tom, could you send me the classpath settings of your manifest.mf, so I'm sure I test with the same configuration. Thanks, Markus.

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Shawn Wilson
Are you running log4j in a standalone application or as part of a servlet container like Tomcat? I'm running it under Tomcat and when it doesn't work for me I can see the following error in stderr.log: log4j:ERROR Failed to rename [e:/WebApps/atmreports/cvsroot/ATMReports/ATMRealtime_NYCE/WEB-INF

Re: Problems with Xalan/Xerces using Log4J 1.2.3 with WebSphere 4.01

2002-09-04 Thread Tom Marsh
Marcus: We're also doing something very similar. We have log4j.jar in our .ear file, along with xalan.jar and xerces.jar. The manifest.mf file contains a classpath entry for the jars. Tom > Hi, > > I've developed a servlet-based application that is running on WebSphere > 4.01 (on AIX) and i

JMX

2002-09-04 Thread Craig Smith
I'm was looking into how I would manage my log4j configuration and saw that it supports JMX. I saw this statement in the javadoc: "It is unfortunately not of production quality." Can someone qualify that? Does anyone have experience with it? If this isn't a good solution, has anyone else co

RE: Log4sh?

2002-09-04 Thread Ebersole, Steven
I almost, forgot... I havent tried it yet, but I remember that an open source project just released log4perl not too long ago. You might want to have a look at a solution using that. HTH |-Original Message- |From: Steve Cohen [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, Se

RE: Log4sh?

2002-09-04 Thread Ebersole, Steven
We actually handle this by: 1) having log4j configured to use the ConsoleAppender; 2) piping/directing output from the shell script (including the console output from log4j) into a file. Works pretty well. |-Original Message- |From: Steve Cohen [mailto:[EMAIL PROTECTED]] |S

Log4sh?

2002-09-04 Thread Steve Cohen
I have a process that runs 3 java programs in succession plus some other stuff, within a shell script kicked off by a cron job. All three java programs log to the same log4j file. Is there something I can run in the shell script itself to route the raw shell script output to the same file as

How to list appenders in 1.2.6

2002-09-04 Thread Dogan Atay
I want to migrate from version 1.1.3 to 1.2.6. I have an initialization servlet in my WAS (os/390) container which does a general configuration using PropertyConfigurator. After the configuration is done I list all of the Categories and their appenders using the Category.getCurrentCategories()

RE: Performance between Log4j and custom in-house logger

2002-09-04 Thread Ebersole, Steven
SPECIFICALLY: As Ceki mentioned you currently have logging statements being output to both files... this will hurt performance in this test. Simply setting additivity to false for the two loggers should work wonders for this simple test. Try this for your config: #

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Bhangale, Bhushan
I am using this jar log4j-1.2.6.jar on windows 2000. log4j.rootCategory=DEBUG, file log4j.appender.file=org.apache.log4j.DailyRollingFileAppender log4j.appender.file.file=${logFile.path} log4j.appender.console.Threshold=INFO log4j.appender.console.ImmediateFlush=true log4j.appender.file.DatePatte

Problems with Xalan/Xerces using Log4J 1.2.3 with WebSphere 4.01

2002-09-04 Thread M . Langenbahn
Hi, I've developed a servlet-based application that is running on WebSphere 4.01 (on AIX) and is doing some XSL-transformations on XML-files using Xalan and Xerces. Since I switched logging to Log4J we experience some strange problems concerning the XSL-scripts, i.e. scripts that were working fin

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Thomas Muller
What Log4j version is this? Which OS? What does your configuration file look like? Are you getting any Log4j ERR or WARN statements on std err when you expect logging to occur (and the file to roll)? Could you please submit the smallest possible program that demonstrates what you interpret as a fl

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Bhangale, Bhushan
I know Thomas. But its not happening at all. When I restart the application onlt at that time it rolls the file. -Original Message- From: Thomas Muller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 6:29 AM To: Log4J Users List Subject: RE: DailyRollingFileAppender does n

RE: DailyRollingFileAppender does not create backup file

2002-09-04 Thread Thomas Muller
Keep in mind that the DailyRollingFileAppender is not supposed to roll over exactly at the time specified, merely at the first log-event that occurrs after that time is passed. The reason is simply that the rollover is handled in the same thread as the logging occurrs. -- Thomas | -Origina

Problem sending only one line using SMTPAppender

2002-09-04 Thread Decker, Pascal
Hi, 1. I use a FileAppender to log to a file and a SMTPAppender to send fatal errors in an email. To filter, that only fatal errors will be sent in an email I wrote a custom class that implements TriggeringEventEvaluator. and I define the class in log4j.properties log4j.appender.mail.EvaluatorCla