File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes log4J: could not able to see the log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "log4J: could not able to see the log file" Watch "log4J: could not able to see the log file" New topic
Author

log4J: could not able to see the log file

ramaa Vadakattuu
Greenhorn

Joined: Oct 12, 2007
Posts: 7
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4J: could not able to see the log file
 
Similar Threads
Unable to log to file
log4j -> fileAppender.getFile() to read unix log dir location
Issue in using the DatabaseServerLoginModule for encrypting the password using MD5
log file path in weblogic
dynamic configuration of file appender