File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes log files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "log files" Watch "log files" New topic
Author

log files

ram kri
Greenhorn

Joined: Dec 08, 2005
Posts: 12
i want to create a log file for my web application using log4j api.

where shall i keep that log file?

can u give the directory structure of the webapplication while maintaing the log files?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Put it in the WEB-INF/classes directory of your web application.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by ram kri:

where shall i keep that log file?


The log file?
Did you mean the config file (log4j.properties)?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
C Broussard
Greenhorn

Joined: Jun 18, 2004
Posts: 28
if you're talking about the output.log file, what operating system are you running... if it's linux or a unix, i'd probably put it w/ the rest of the log files in /var/log.

if it's windows... noooooooo idea.

www.binaryfrost.com
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Originally posted by Ben Souther:


The log file?
Did you mean the config file (log4j.properties)?
I meant the log4j.properties, yes. But probably I misread the original question, which asked about the log file. Meaning the output from log4j, I suppose. I make log4j write that outside the web application.
 
Consider Paul's rocket mass heater.
 
subject: log files