Hi,
attached you find the sources for a contribution I would like to see in the log4j distribution. It is a servlet running as an Appender.
The basic idea is that log files are sometimes very hard to access. In particular this holds true in production environments. The servlet gives you access to the log files like this:
1.) Open browser window and enter the servlets URL. Note, that proper authentication is required. The servlets assumes that the method isAuthenticated(String pUsername, String pPassword) be overridden.
2.) Open a second browser window and perform your actions. Logging output is displayed in the first window.
3.) Once your debugging session is done, close the first window. This detaches the appender from the log4j environment. Likewise, you will be detached in case of inactivity. (Timeout is configurable as a request parameter.)
Jochen
AuthenticatingServlet.java
Description: java/
Log4jServlet.java
Description: java/--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]