Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E93C3200B93 for ; Sat, 17 Sep 2016 05:30:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E7C6A160AD9; Sat, 17 Sep 2016 03:30:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 365B9160AC4 for ; Sat, 17 Sep 2016 05:30:24 +0200 (CEST) Received: (qmail 35307 invoked by uid 500); 17 Sep 2016 03:30:22 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 35292 invoked by uid 99); 17 Sep 2016 03:30:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Sep 2016 03:30:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E4AF2C0D56 for ; Sat, 17 Sep 2016 03:30:22 +0000 (UTC) Date: Sat, 17 Sep 2016 03:30:22 +0000 (UTC) From: "Darren Kelly (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (LOG4J2-1586) Automatic Reconfiguration not working when edit and save log4j2.xml in NetBeans /build/WEB-INF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 17 Sep 2016 03:30:25 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1586?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Darren Kelly closed LOG4J2-1586. -------------------------------- Resolution: Cannot Reproduce > Automatic Reconfiguration not working when edit and save log4j2.xml in Ne= tBeans /build/WEB-INF > -------------------------------------------------------------------------= --------------------- > > Key: LOG4J2-1586 > URL: https://issues.apache.org/jira/browse/LOG4J2-1586 > Project: Log4j 2 > Issue Type: Bug > Components: Configurators > Affects Versions: 2.5 > Environment: Mac OS X > NetBeans8.1 > Glassfish4.1.1 > Reporter: Darren Kelly > > With a NetBeans web app deployed over the project's build folder (not as = a separate deployed WAR). > From https://logging.apache.org/log4j/2.x/manual/configuration.html#Autom= aticReconfiguration: > {quote} > When configured from a File, Log4j has the ability to automatically detec= t changes to the configuration file and reconfigure itself. If the monitorI= nterval attribute is specified on the configuration element and is set to a= non-zero value then the file will be checked the next time a log event is = evaluated and/or logged and the monitorInterval has elapsed since the last = check. The example below shows how to configure the attribute so that the c= onfiguration file will be checked for changes only after at least 30 second= s have elapsed. The minimum interval is 5 seconds. > {quote} > {code} > > > ... > > {code} > But when I edit and save the /build/web/WEB-INF/classes/log4j2.xml nothin= g happens, the Automatic Reconfiguration magic fails. The log4j2.xml is oth= erwise found and seems to work fine. > When I use: > {code} > > {code} > and the webapp deployed directly from NetBeans8.1 into Glassfish4.1.1 (ov= er the .../build) I get:=20 > {code} > admin-listener(2) DEBUG Configuration XmlConfiguration[location=3D/Users/= .../webapp/build/web/WEB-IN=E2=80=8C=E2=80=8BF/classes/log4j2.xml=E2=80=8C= =E2=80=8B] initialized.=20 > {code} > But editing the log levels in that log4j2.xml file does not get caught. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org