You have to code it yourself.

--

Thomas

| -----Original Message-----
| From: Rajan Annadurai [mailto:[EMAIL PROTECTED]]
| Sent: 30 May 2002 19:08
| To: [EMAIL PROTECTED]
| Subject: java.io.FileNotFoundException: /LOG/temp.log (The system cannot
| find the path specified)
| 
| 
| Hi ,
| 
|  
| 
| RollingFileAppender peAppender = new
| RollingFileAppender(defaultPattern,"/LOG/temp.log",true);
| 
|  
| 
| The above line throws java.io.FileNotFoundException if the directory is
| not present. How do you make log4j create the directory if it is not
| present?
| 
|  
| 
| Thanx,
| 
| Rajan
| 
| 


*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

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

Reply via email to