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.
posted 12 years ago
That code will attempt to log at /WEB-INF/log/log.xml from the root of your filesystem, your web application.