Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4J: could not able to see the log file

 
ramaa Vadakattuu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on Eclipse IDE
I encountered the following problem
-----------------------
1) if i use the absolute path for the parameter File in appender like below
<appender name="ROLLING" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="D:/sample.log"/>

Then i am able to see the log file at that path.
----------------------------
if i use relative path for the parameter File in appender like below

<appender name="ROLLING" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="sample.log"/>

I could not able to find the file no where in the drive where the Web-App is running.

I could not able to find out why it is behaving like this?
Can anyone please guide me on how to resolve the above issue?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic