Hi  

Thanks for your response. 
Below given is my log4j properties file. This same properties file is
working in other environment. I really don't have any clue. I am using
Solaris as OS.


#### Using one appender to log to a file
log4j.rootCategory=DEBUG,Servlet

# Print only messages of priority WARN or higher for your category
log4j.category.Servlet=WARN
# Specifically inherit the priority level
#log4j.category.Servlet=INHERITED

#### Second appender writes to a file
log4j.appender.Servlet=org.apache.log4j.RollingFileAppender
log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log

# Control the maximum log file size
log4j.appender.Servlet.MaxFileSize=100KB
# Archive log files (one backup file here)
log4j.appender.Servlet.MaxBackupIndex=1

log4j.appender.Servlet.layout=org.apache.log4j.PatternLayout
log4j.appender.Servlet.layout.ConversionPattern=%p %t %c - %m%n


Regards

Rajiv

-----Original Message-----
From: Bender Heri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 5:16 AM
To: Log4J Users List
Subject: RE: Log file does not gets created with log4j

Hi

the leading slash might be the culprit. Also ensure that the directory
exists.

Heri

> -----Original Message-----
> From: Ranjan, Rajiv [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 24, 2005 10:13 AM
> To: log4j-user@logging.apache.org
> Subject: Log file does not gets created with log4j
> 
> 
> Logs file does not gets created on the given location in log4j 
> properties file.
> 
> log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log
> 
> I have log4j.jar file in the weblogic server classpath, also passed 
> log4j.properties file as JAVA_ARGS.
> 
> Still not working.
> 
> Any help will be appreciated.
> 
> Thanks
> 
> Rajiv Ranjan
> > EDS-Electronics Data Systems (India) _______________________________

> > DLF Plaza Tower, DLF City Phase - I, Gurgaon - 122002, Haryana, 
> > India
> > *:  +91-124-519-7716
> >  Mobile: +91-9811860047
> pager: [EMAIL PROTECTED]
> > email : [EMAIL PROTECTED]
> > Jabber IM: [EMAIL PROTECTED]
> > web: www.eds.com
> > 
> > 
> 

---------------------------------------------------------------------
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]

Reply via email to