Can I get at the OutputStream that is buried underneath ServletContext.log()? If so how can I modify it?

Peter Wang

Based on Sun's Java Servlet API ServletContext.log() logs messages to the servlet log file. The name and type of the servlet log file is specific to the servlet engine, but it is usually an event log. To get the log OutputStream depends on the specific servlet engine. For IBM's WebSphere, you can look in the com.sun.server.log.TraceLog class. For the J2EE SDK, the class is com.sun.enterprise.log.Log.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact