Re: Daily Rolling Appender Failing

2004-01-12 Thread Tim Williams
We had this problem on AIX, although we never tracked down the specific cause the behaviour is identical. I don't think it is necessarily a Log4J problem either - more to do with the file system itself. We ended up writing a nasty hack version of the rolling file appender. There was a discussion

How to set 2 file names in log4j.properties

2004-01-12 Thread Ramesh RGVS
Hi All I am using log4j in my applications. i have a problem in directing the logs to different files. For examples i have 2 java programs and i wanted to direct the messages to different files. i have created 2 appenders in log4j.property file as below log4j.rootCategory=DEBUG, R,R1, stdout log4

Re: Serious letdown when trying to log4j in Tomcat. Unsolvable?

2004-01-12 Thread Jacob Kjome
At 09:42 PM 1/12/2004 +0100, you wrote: Hi, This has probably cropped up before? Correct me if I'm wrong (I'm always happy to get an earful about nonexisting problems) but...: The gist: "In some (most?) cases you cannot use a 'log4j.properties' file placed in your web application's WEB-INF/cla

RE: Daily Rolling Appender Failing

2004-01-12 Thread Ken . Liu
I don't think this is a problem with log4j, more of an issue with the way Windows handles renaming open files (or perhaps the way Java does it). I just avoid the problem by not keeping log files open overnight, or just copying to another location before opening them. Kind of like the joke where t

RE: Daily Rolling Appender Failing

2004-01-12 Thread Typrowicz, Jim
Ken, Thank you for your reply. Do you know if the log4j developers are working on a solution? Thank you, Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Daily Rolling Appender Failing I

RE: Daily Rolling Appender Failing

2004-01-12 Thread Ken . Liu
I have found that files can fail to roll over on Windows if you still have them open (such as with tail or Wordpad) when log4j tries to roll over . This might be your problem. Ken > -Original Message- > From: Typrowicz, Jim [mailto:[EMAIL PROTECTED] > Sent: Monday, January 12, 2004 11:15

Serious letdown when trying to log4j in Tomcat. Unsolvable?

2004-01-12 Thread David Tonhofer, m-plify S.A.
Hi, This has probably cropped up before? Correct me if I'm wrong (I'm always happy to get an earful about nonexisting problems) but...: The gist: "In some (most?) cases you cannot use a 'log4j.properties' file placed in your web application's WEB-INF/classes directory" ...this goes counter t

Nag! Nag! Picture missing in log4j docs...

2004-01-12 Thread David Tonhofer, m-plify S.A.
Picture is missing in http://logging.apache.org/log4j/docs/manual.html here: http://logging.apache.org/log4j/docs/od.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Daily Rolling Appender Failing

2004-01-12 Thread Typrowicz, Jim
Has anyone else found a problem with the Daily Rolling File Appender failing to rename the file? It then empties the current file, so the log information is lost. Is this a Windows only problem? Does anyone have a solution? Will this be fixed in the next log4j release? Thank you, Jim -

Re: Shutting down specific instance of log file

2004-01-12 Thread Roth Marcel
Hi, I'm using a code like this for closing my ConsoleAppender and then add a RollingFileAppender instead ... Marcel if (Log.isAttached(myCAppender)) { Log.removeAppender(myCAppender); } Zitiere [EMAIL PROTECTED]: > Hi everyone. > > I'm currently fac

Shutting down specific instance of log file

2004-01-12 Thread dalonsoh
Hi everyone. I'm currently facing a problem where I have two instances of log files, one running internally using Turbine, and the other for a process withing my application which runs for about an hour every day. For this separate process I have my own log file, and I wish to shut it down after

RE: Custom Filter Question

2004-01-12 Thread Shapira, Yoav
Howdy, >"Why not just add org.jboss=WARN" > >Where do I put this in the config file? That's for a properties configuration file. You're using XML. So your syntax would be like: You can put this anywhere in your configuration file. I don't use log4j's XML configuration, so the above form

Link correction in http://logging.apache.org/log4j/docs/documentation.html

2004-01-12 Thread David Tonhofer, m-plify S.A.
Hi people, I just noticed that there is a dead link on http://logging.apache.org/log4j/docs/documentation.html to my log4j 1.2.7 class diagrams. They have not changed but the machine name that is used is no longer in existence. The link should be: http://rei1.m-plify.net/log4j/ instead of

RE: Custom Filter Question

2004-01-12 Thread Pitre, Russell
"Why not just add org.jboss=WARN" Where do I put this in the config file? Here's the console appender that I have Russ... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:

RE: Custom Filter Question

2004-01-12 Thread Shapira, Yoav
Howdy, >cluttered. So I only want to see debug statements that involve the >classes that I have written. I'll eventually turn the filter off in >production. Why not just add org.jboss=WARN to your configuration file so that only messages at WARN level or higher show up from the org.jboss class

RE: Custom Filter Question

2004-01-12 Thread Pitre, Russell
I know, it sounds a little ridiculous (lol)..I'm working with Jboss and I setup the console appender with a threshold value of debug. I have a "Scheduling" class that logs every 5 seconds what is in it's queue. And between Jboss and that scheduling class the console is a bit cluttered. So I

RE: Custom Filter Question

2004-01-12 Thread Shapira, Yoav
Howdy, The parameter could be a comma-delimited string, which you could parse with a StringTokenizer very easily. But why are you doing this? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Pitre, Russell [mailto:[EMAIL PROTECTED] >Sent: Monday, January 12, 2004 9:33

Custom Filter Question

2004-01-12 Thread Pitre, Russell
Hello all- I'm coding a simple filter that allows certain logger names to "pass through." The filter works like this. The filter checks the logger name by calling getLoggeName() method of the LoggingEvent class. The parameter you supply such as "com.x.y" will check to see if the logger name

RE: Question on Version of Log4j

2004-01-12 Thread Shapira, Yoav
Howdy, Your solution is general and good. But I for one wouldn't mind seeing a LogManager#getVersion method. It can return a simple string e.g. "1.2.8" or maybe something more involved. This is a minor enhancement, not an API requirement for us unlike the Servlet API (ServletContext#getServerIn

Parse logj4 Messages!

2004-01-12 Thread Magnus Andersson
I got a problem. Irecived a message that looks like this: 2004-jan-07 14:16:03,125 INFO MyApp MyApp main - d9d73; 9df834jdf9; 9cvkdc9; 9didem89; And the problem is. That i want to put everything into a jdbc database and the message should be divided so, that after every ";" semicolon i want it

SMTPAppender and charset of subject and messagebody

2004-01-12 Thread Waldemar Thiel
Hello Has any1 implemented SMTPAppender with support of setting message charset? I've looked at sources of SMTPAppender and there is no implementation of setting charset of email message (or I'm doing something wrong). All my messages are in UTF-8 and in my mail body I've receive in place of nati