Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60AE411209 for ; Mon, 12 May 2014 20:09:32 +0000 (UTC) Received: (qmail 77000 invoked by uid 500); 12 May 2014 20:02:47 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 76885 invoked by uid 500); 12 May 2014 20:02:47 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 76876 invoked by uid 99); 12 May 2014 20:02:47 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 20:02:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of karl.kilden@gmail.com designates 209.85.219.44 as permitted sender) Received: from [209.85.219.44] (HELO mail-oa0-f44.google.com) (209.85.219.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 20:02:43 +0000 Received: by mail-oa0-f44.google.com with SMTP id o6so1881491oag.17 for ; Mon, 12 May 2014 13:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LGV45Kth4fRfS7Ri6+lgiZpChOxtyEtv9myc4LL94hI=; b=w17SUFPYBfeYEQcdPKeoxddy3GyDvoU1Hb9O4dxAoMglplWHedvqqBcmmBdsJcNuey 5NAmp5DCyNLhLsFzPwhsZx1u/PbFW/+hvmv/U7oG2U2vAK0W2+zaEINs6s7pYndd0+0Z iqu62bXqGP8YBDImBUIVKe/GvKUSUGpWcoi9uJmbk93saBIycOty3I6v48kmRElYC+S9 PAXDuDO4+tk4DaYkv/Vu9+R6K/XbKQ1LUndplEiHvjKqMOXpsjPgrUP096yYsVJyCr6z jGEh4DfZPQBM4qDNyBuSgywfLl1zXpKMsCQwKBfeIQTDkDC9Mqnxdb9waNb0r7QF9YVM 89zQ== MIME-Version: 1.0 X-Received: by 10.182.105.1 with SMTP id gi1mr37354678obb.9.1399924939470; Mon, 12 May 2014 13:02:19 -0700 (PDT) Received: by 10.76.133.231 with HTTP; Mon, 12 May 2014 13:02:19 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 May 2014 22:02:19 +0200 Message-ID: Subject: Fwd: Log4J2 - Set log level programmatically From: =?UTF-8?B?S2FybCBLaWxkw6lu?= To: log4j-user@logging.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1cf66babb0604f9396c1f X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1cf66babb0604f9396c1f Content-Type: text/plain; charset=UTF-8 Hi! Reading this http://mail-archives.apache.org/mod_mbox/logging-log4j-user/201305.mbox/%3CBAF05689-F627-457D-BD37-59BFCE46F69E@nicholaswilliams.net%3E hints that this is fully possible. This is also a very nice feature for webapps (especially those running in a cluster) because editing a file on the server is error prone and sometimes not even possible. The docs for log4j2 is pretty great overall but I would really like some info on setting the levels programmatically... Thanks for log4j, a staple framework I use for every project :-) Time to upgrade to log4j2 (hence the question) cheers --e89a8ff1cf66babb0604f9396c1f--