RE: Help needed for logging to multiple files !!!

2004-09-28 Thread Vikas Jaitly
Hi Paul, I was able to configure log4j for having all the logs for all tasks in a single file.That is the beauty of log4j. But this (separate log file per task) is a requirement and nothing much can be done :( Thanks any ways !! Regards, Vikas -Original Message- From: Paul Smith [mailto

RE: Help needed for logging to multiple files !!!

2004-09-28 Thread Paul Smith
> Problem statement > -- > I have a java application(not a *web* application), where > multiple tasks can > be performed at a time .I want to log all the output to a file by name > .log for each of the running tasks. Since the task name is not > available until runtime, I canno

Reloading the properties file

2004-09-28 Thread Prasad, Kamakshya
Hi All, We have a j2ee web application using log4j for logging purpose. Nowadays quite frequently we have to switch on and switch off the debugging mechanism. The properties file is in web-inf/classes. We have to load the configuration file whenever it changes. We are planning to write a ser

RE: unit in configureAndWatch?

2004-09-28 Thread Ivan Jouikov
Oh suck it up :) > -Original Message- > From: Gary Gregory [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 8:55 PM > To: Log4J Users List > Subject: RE: unit in configureAndWatch? > > Sure, but the parameter could have a better than 'delay', like > 'delayMillis' or 'interval

Help needed for logging to multiple files !!!

2004-09-28 Thread Vikas Jaitly
Hi All, I am trying to use log4j for my java application, and am stuck with a problem. I have already tried a search on the archive but could not find a solution for the current problem. Please provide me with a solution or point me to the thread if it has already been discussed. Problem statemen

RE: unit in configureAndWatch?

2004-09-28 Thread Gary Gregory
Sure, but the parameter could have a better than 'delay', like 'delayMillis' or 'intervalMillis' or somesuch. Gary > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 19:48 > To: Log4J Users List > Subject: Re: unit in configureAndWatch?

Re: unit in configureAndWatch?

2004-09-28 Thread Jacob Kjome
At 05:05 PM 9/28/2004 -0400, you wrote: What is the unit for the interval argument in PropertyConfigurator.configureAndWatch( filename, interval )? milliseconds? seconds? The first thing to do before posting is to first check the docs and see if you can obtain your answer there. Please do that

RE: log4j with with multiple web apps? URGENT!

2004-09-28 Thread Jacob Kjome
At 03:03 PM 9/28/2004 -0700, you wrote: This problem was already solved, no need to raise dead topic :) Thanks for effort though. Really? When did you say the problem was solved? If you didn't post it, it would be very helpful for future reference to explicitly state how you solved the problem.

RE: log4j with with multiple web apps? URGENT!

2004-09-28 Thread Ivan Jouikov
This problem was already solved, no need to raise dead topic :) Thanks for effort though. > -Original Message- > From: Paul Smith [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 2:22 PM > To: Log4J Users List > Subject: RE: log4j with with multiple web apps? URGENT! > > htt

RE: log4j with with multiple web apps? URGENT!

2004-09-28 Thread Paul Smith
http://www.caucho.com/resin-3.0/config/env.xtp#servlet-hack In Resin 3.0 the config name has been renamed, but it's still there. Paul > -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 7:28 PM > To: Log4J Users List > Subject: RE: log4j

unit in configureAndWatch?

2004-09-28 Thread Jeff Drew
What is the unit for the interval argument in PropertyConfigurator.configureAndWatch( filename, interval )? milliseconds? seconds? Thanks Jeffrey Drew President and Founder Trading Metrics, Inc. 917-453-0302

RE: writing to 2 different log files at same time

2004-09-28 Thread Shapira, Yoav
Hi, You can go about this several ways. Here's one option, in a properties configuration format. # Define log file (appender) for "processing actions" log4j.appender.processingActionsAppender = org.apache.log4j.FileAppender ... # Define log file (appender) for "database actions" log4j.appender.

writing to 2 different log files at same time

2004-09-28 Thread Swati Vakharia
Hi I'm trying to use log4j to write to two different log files at different time . For example I want one log file to track my "processing actions" and another log file to track my "database actions" . I tried setting up different loggers in the configuration but it always seems to be writing all a

RE: log4j with with multiple web apps? URGENT!

2004-09-28 Thread Jacob Kjome
Quoting Ceki Gülcü <[EMAIL PROTECTED]>: > At 10:35 PM 9/27/2004, you wrote: > > >First, did you follow the other poster's instructions for configurting > >Resin to > >use the (or whatever it was called)? If not, > that's > >an absolute necessity. > > http://browserinsight2.lunaimaging.com:8090/f

RE: using java.io.tmp in properties file

2004-09-28 Thread Shapira, Yoav
Hi, Yup, use the Ant-like syntax ${java.io.tmp} (I actually think you mean java.io.tmpdir by the way). Yoav Shapira Millennium Research Informatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 28, 2004 12:00 PM >To: [EMAIL PROTECTED]

using java.io.tmp in properties file

2004-09-28 Thread roy-log4j-user
Hi guys, We use log4j for just about everything. I tried to do a search for this but I'm coming up empty. Can anyone tell me if its possible to use the System property java.io.tmp in a log4j properties file? Thanx in advance. Roy.

Antwort: Re: LevelMatchFilter does not work

2004-09-28 Thread herbert . pfleger
Thanka a lot Ceki ... that was indeed the mistake ... now it works. ( one additional hint to your remark: For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp This book is sold out everywhere. Seems to be a quite good

Re: LevelMatchFilter does not work

2004-09-28 Thread Ceki Gülcü
You probably need a deny all filter at the end of the filter list. At 05:09 PM 9/28/2004, you wrote: Hi all, I have problems to get the LevelMatchFilter work. I use a xml file to configure log4j

LevelMatchFilter does not work

2004-09-28 Thread herbert . pfleger
Hi all, I have problems to get the LevelMatchFilter work. I use a xml file to configure log4j After that I thougt only log messages with level "ERROR" should b

Re: Need FallbackErrorHandler Example (Errata Corrige)

2004-09-28 Thread Francesco Russo
You might use the tag. Ken Baltrinic wrote: Francesco, Thanks for the details, this is exactly what I was looking for. I have one final question though. How would I reference the root logger in ? --Ken -Original Message- From: Francesco Russo [mailto:[EMAIL PROTECTED] Sent: Tuesday, Se

RE: Need FallbackErrorHandler Example (Errata Corrige)

2004-09-28 Thread Ken Baltrinic
Francesco, Thanks for the details, this is exactly what I was looking for. I have one final question though. How would I reference the root logger in ? --Ken -Original Message- From: Francesco Russo [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 8:59 AM To: Log4J Users L

Re: Need FallbackErrorHandler Example (Errata Corrige)

2004-09-28 Thread Francesco Russo
Hi Ken, in order to properly use the FallbackErrorHandler you should configure your appenders in the following way: ... ... In the sam

Re: Need FallbackErrorHandler Example

2004-09-28 Thread Francesco Russo
Hi Ken, in order to properly use the FallbackErrorHandler you should configure your appenders in the following way: ... ... In the sam

RE: How to use log4j in applet?

2004-09-28 Thread Shapira, Yoav
Hi, Yes. See the SocketAppender JavaDoc. Yoav Shapira Millennium Research Informatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Monday, September 27, 2004 4:25 PM >To: Log4J Users List; Shapira, Yoav >Subject: RE: How to use log4j in applet? > >Zitie

RE: Need FallbackErrorHandler Example

2004-09-28 Thread Ken Baltrinic
I am confused. Implement my own appender? Isn't that the purpose of the FallbackErrorHandler is to do this for me? The JavaDocs for the class state: >The FallbackErrorHandler implements the ErrorHandler interface such that a >secondary appender may be specified. This secondary appender takes o

Re: logger.getLevel() returning null

2004-09-28 Thread Francesco Russo
Thanks, that was the solution. Ceki Gülcü wrote: The Logger.getLevel method can return null. You are probably looking for the Logger.getEffectiveLevel method. http://logging.apache.org/log4j/docs/api/org/apache/log4j/Category.html#getEffectiveLevel() At 11:14 AM 9/28/2004, you wrote: Hi everybo

RE: Log4J problem with RollingFileAppender and backups

2004-09-28 Thread Järkeborn Joacim
Some additional notes... The renaming of "mylog.log.x" --> "mylog.log.x+1" works but NOT "mylog.log" --> "mylog.log.1". Therefore the backups rolls away after some rolling. Regards Joacim Järkeborn IT Architect > -Original Message- > From: Järkeborn Joacim [mailto:[EMAIL PROTECTE

RE: logger.getLevel() returning null

2004-09-28 Thread DE BENEDICTIS DAVIDE
Infact as I see, in your file you didn't specified verbosely a logger called "it.cineca.test.j2eeLog.LoggingBean" so log4j will use the "it.cineca.test". If you call getLevel on the latter you will get a not null level. Anyway calling getEffectiveLevel() will work. (I didn't know it) ;-) >

RE: logger.getLevel() returning null

2004-09-28 Thread DE BENEDICTIS DAVIDE
Hi Francesco I fall in the same error weeks ago. Actually I don't understand very well xml config files, I sue property files but anyway if you don't set explicitally a level for your logger but you are inherithing from root logger, then your level will be null. I wrote this just last week. In my a

RE: log4j with with multiple web apps? URGENT!

2004-09-28 Thread Ceki Gülcü
At 10:35 PM 9/27/2004, you wrote: First, did you follow the other poster's instructions for configurting Resin to use the (or whatever it was called)? If not, that's an absolute necessity. http://browserinsight2.lunaimaging.com:8090/faq/classloader.xtp According to this document Resin 2.1.x orde

Re: logger.getLevel() returning null

2004-09-28 Thread Ceki Gülcü
The Logger.getLevel method can return null. You are probably looking for the Logger.getEffectiveLevel method. http://logging.apache.org/log4j/docs/api/org/apache/log4j/Category.html#getEffectiveLevel() At 11:14 AM 9/28/2004, you wrote: Hi everybody, using log4j1.2.8 I am facing a strange behaviou

logger.getLevel() returning null

2004-09-28 Thread Francesco Russo
Hi everybody, using log4j1.2.8 I am facing a strange behaviour. Follows a snippet of my configuration file: Let us now suppose I have a class called it.cineca.test.j2eeLog.LoggingBean. Well, whenever I call "Logger.getL

Log4J problem with RollingFileAppender and backups

2004-09-28 Thread Järkeborn Joacim
Hi, We are using Log4J in our J2EE application with RollingFileAppender and a number of backups. When the appserver and application starts everything seems to work as it should, it creates the logfile and backups after the max file size have been reached. When max backup parameters are reac