Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to log ...

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey folks.
I have a directory inside WEB-INF dir of my application called log.
how to log to this dir (I want to use J2SE logging API).
I don't want to log TOMCAT_HOME/log dir.
I got an exception : unable to synchronized at WEB-INF/log
I tried the following in the servlet :
Handler h = new FileHandler("/WEB-INF/log/log.xml");
thank.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That code will attempt to log at /WEB-INF/log/log.xml from the root of your filesystem, your web application.

try


which should give you the correct path.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic