wt.tools.log
Class LogFileServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bywt.tools.log.LogFileServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LogFileServlet
extends javax.servlet.http.HttpServlet

Servlet that redirects servlet engine JVM System.out and System.err streams to a Windchill style log file. The following servlet parameters control the destination log file.

See Also:
Serialized Form

Field Summary
private  boolean append
           
private  String file
           
private static boolean initialized
           
private static PrintStream oldErr
           
private static PrintStream oldOut
           
private  boolean tee
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
LogFileServlet()
           
 
Method Summary
 void init(javax.servlet.ServletConfig config)
           
private static void init(String file, boolean append, boolean tee)
           
private  void printStartedMessage()
           
private  void printStartingMessage()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

private static boolean initialized

oldOut

private static PrintStream oldOut

oldErr

private static PrintStream oldErr

file

private String file

append

private boolean append

tee

private boolean tee
Constructor Detail

LogFileServlet

public LogFileServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

init

private static void init(String file,
                         boolean append,
                         boolean tee)
                  throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

printStartingMessage

private void printStartingMessage()

printStartedMessage

private void printStartedMessage()