RE: log4j:ERROR Failed to rename : more info

2004-07-08 Thread Allistair Crossley
The other thing is that this suggested solution does not cover DailyRollingAppender, 
just RollingFileAppender and therefore the overridden code is not applicable. 

I cannot tell you how useful it would be to solve this issue as we are just 
haemorriging log information right now.

AC

 -Original Message-
 From: Allistair Crossley 
 Sent: 02 July 2004 15:24
 To: Log4J Users List
 Cc: Ceki Gülcü
 Subject: RE: log4j:ERROR Failed to rename : more info
 
 
 Hey there,
 
 Sorry it took so long to reply Ceki.
 
 The suggested fix in this bug report only monitors the result 
 of the rename. It does not fix the problem where a new file 
 is required _for sure_ at a certain time.
 
 Another issue with this suggested fix is that it will not 
 compile because
 
 this.setFile(filename, true)
 
 is not a method of RollingFileAppender. The method 
 specification in that is
 
 setFile(String, boolean, boolean, int)
 
 And I am not au fait enough with Log4J to know what those 
 arguments mean. Perhaps you could suggest?
 
 Many thanks. I see this is an open bug and I hope it will be 
 resolved at some point.
 
 Cheers!
 
 Allistair Crossley
 __
 
 Senior Web Developer
 New Media Group, QAS Ltd
 Telephone: 020 7819 5343
 __
 
 
  -Original Message-
  From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
  Sent: 28 May 2004 18:27
  To: Log4J Users List
  Subject: RE: log4j:ERROR Failed to rename : more info
  
  
  Allistair,
  
  I would very much appreciate if you could try the simple 
  solution proposed 
  in bug 900.
  
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=900
  
  Does it solve the problem you are encountering?
  
  At 10:26 PM 5/26/2004, you wrote:
  Hey,
  
  OK, sorry I misunderstood. Look forward to hearing if you 
  find anything or 
  can improve the DRFA. I'll use the modified version for now,
  
  Cheers! And log4j is fantastic btw.
  
  ADC
  
   -Original Message-
   From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
   Sent: Wed 26/05/2004 19:24
   To: Log4J Users List
   Cc:
   Subject: RE: log4j:ERROR Failed to rename : more info
  
  
  
  
   I did not say there was no problem. All I am saying 
  is that it's very
   unlikely that it is a threading/concurrent access 
  problem. I'll 
   look into
   this tomorrow. Gotta run now.
  
  -- 
  Ceki Gülcü
  
For log4j documentation consider The complete log4j manual
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



log4j configuration problem

2004-07-08 Thread florian . racky
Hi,

I have a problem with the configuration of log4j. What I want to do is have some 
classes doing their logging in level INFO. I used the rootLogger to achieve this and 
it is working very well. There is another class (de.techem.novell.fileservice.Upload) 
which is still under development. Therefore it should log it's messages in level 
DEBUG. This is my log4j config:

log4j.rootLogger=INFO,A1
log4j.logger.de.techem.novell.fileservice.Upload=DEBUG
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p %m%n
log4j.appender.A1.File=...filefilefilefile...

It seems to me that there is a problem in the second line of the config file because 
every message is logged in level INFO. Then I changed the line to

log4j.logger.de=DEBUG

to be sure that the other classes in this package should log in level DEBUG but 
nothing happened. Every class is still logging in the level defined for the 
rootLogger. Then I thought it might have something to do with the classname and made 
log4j put the classname in my logfile changing the pattern to %d %C %-5p %m%n. After 
that chage, the classname appeared in the logfile and were exactly the same as 
specified in line 2 of the first version of the configfile 
(de.techem.novell.fileservice.Upload).

Everything I tried did not succeed, so I am mailint to this list to find someone who 
could help me out. Any ideas what I am doing wrong?

Thanks for your help.
Flo




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log using both jdbc appender and fileAppender

2004-07-08 Thread LIANG, JULIA (SBCSI)
Hi, folks, 

I need to use jdbcAppender to log the import events to database.  Those
event logs later on will be used to do transaction analysis. I also need
to use the FileAppender to log the general log information to a log
file. I have problem to switch between these two appenders. Anybody has
some idea on it? 


Julia Liang

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log using both jdbc appender and fileAppender

2004-07-08 Thread mrutherfurd


Return Receipt
   
Your  Log using both jdbc appender and fileAppender
document   
:  
   
was   Michael Rutherfurd/CORPAU/WBCAU/WBG  
received   
by:
   
at:   09/07/2004 11:20:09  
   





WARNING - This email and any attachments may be confidential. If received in error, 
please delete and inform us by return email.

Because emails and attachments may be interfered with, may contain computer viruses or 
other defects and may not be successfully replicated on other systems,
you must be cautious. Westpac cannot guarantee that what you receive is what we sent. 
If you have any doubts about the authenticity of an email by Westpac,
please contact us immediately. 

It is also important to check for viruses and defects before opening or using 
attachments. Westpac's liability is limited to resupplying any affected attachments.

Westpac Banking Corporation ABN is 33 007 457 141.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]