This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log files

 
ram kri
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put it in the WEB-INF/classes directory of your web application.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ram kri:

where shall i keep that log file?


The log file?
Did you mean the config file (log4j.properties)?
 
C Broussard
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic