logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <joc...@apache.org>
Subject Contribution: Log4jServlet
Date Sat, 06 Dec 2003 10:47:49 GMT

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




Mime
View raw message