Thomas, If you just want to change logging levels then I have attached a jsp that will allow this, I think there is a property that you can pass in like - Dlog4j.config=/path/to/file or something like that.
Don On 2/7/07, Thomas Chang <[EMAIL PROTECTED]> wrote:
Title: Log4J Administration <%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ page import="org.apache.log4j.Level"%> <%@ page import="org.apache.log4j.LogManager"%> <%@ page import="org.apache.log4j.Logger, java.util.*"%> <% long beginPageLoadTime = System.currentTimeMillis();%> <% String containsFilter = "Contains"; String beginsWithFilter = "Begins With"; String[] logLevels = { "debug", "info", "warn", "error", "fatal", "off" }; String targetOperation = (String)request.getParameter("operation"); String targetLogger = (String)request.getParameter("logger"); String targetLogLevel = (String)request.getParameter("newLogLevel"); String logNameFilter = (String)request.getParameter("logNameFilter"); String logNameFilterType = (String)request.getParameter("logNameFilterType"); %>Hi all, I am not sure if my question is put in a right place. Hope there is someone who can give me some info. I have a file called "mylog.log4j.properties" - not "log4j.properties". Normally I should put this file under WEB-INF and it will be packaged in to the WAR. But I want to put this logfile outside of the WAR so it will be easy to change its contents without open the WAR. But I don't know where should I put this logfile so my web-application will write the logs into it. I've heard I have to configue the classpath, or I have to configure the web.xml. But how? ------------------------------ Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail <http://de.rd.yahoo.com/evt=40589/*http://de.docs.yahoo.com/ymail/landing.html+%0A> .
Log4J Administration
Filter Loggers:
" class="filterText" />
" class="filterButton" />
" class="filterButton" />
Logger | Parent Logger | Effective Level | Change Log Level To |
---|---|---|---|
<%=loggerName%> | <%=loggerParent%> | <%=loggerEffectiveLevel%> |
<%
for(int cnt=0; cnt |