From log4j-user-return-27643-apmail-logging-log4j-user-archive=logging.apache.org@logging.apache.org Thu Jun 9 09:42:10 2016 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 EE166180A1 for ; Thu, 9 Jun 2016 09:42:10 +0000 (UTC) Received: (qmail 4991 invoked by uid 500); 9 Jun 2016 09:42:10 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 4939 invoked by uid 500); 9 Jun 2016 09:42:10 -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 4928 invoked by uid 99); 9 Jun 2016 09:42:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 09:42:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 13F20C0773 for ; Thu, 9 Jun 2016 09:42:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JttfUpjeYYE2 for ; Thu, 9 Jun 2016 09:42:08 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7A4FA5F20E for ; Thu, 9 Jun 2016 09:42:07 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id j5so22471138lfb.3 for ; Thu, 09 Jun 2016 02:42:07 -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; bh=oPtfTE0HslNa68LPdYihBgQGXeKu8yL7OcVRpk1UKfs=; b=tdOFIsDbsYNOmPOT4ZDDhhZQrOLaMTXi8K5Xarz5YSqK0mJgxUBDnMA+YisbwKFski iXDCrgdsOFvjSP/aCNKk7IdLOvWcS99DWfkLHP4o1OlxYdJ+uGeygaukASY0Ogpnyuf1 sxcXm4VMDT/9iUFdH8UFfRM6jtWOMwpkq3LkvvsuhOTtKifRl1Yd8xFaI1Gk3FKjx8zy U6nT9ixD7jJFVv+LOHbc1Rv6RDP6XSNtPZxoMaB+1npjcQi+4+0tWm+fSc3sp1pDYEFo twh7YV3pHk+avy1DpiurERMVHLKtVz7LdBF1GKs8o8Vp4q2E8QuqpFJUpBpbQpvCpYss LZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=oPtfTE0HslNa68LPdYihBgQGXeKu8yL7OcVRpk1UKfs=; b=dCR8kvl0doJ77tcLxmk+qCb2HOySQT35GOCB/DoNB1MjqdJUKy6bjpyckMlWV23BTE PGFPBkfrZB9rJbyfAMriIbghTbcXKplNTZPNMp98GJjRfqDy3pxaRTHEK7weR/DzuCZK 3Zb8x4wUkc09fu2f+LVYomRGWoKVufRf6Pxv7rU5cocDqF3CBXYpGJGTSJ0UOfcOsGpp NfNz5bjjT2D7iNMcRAaPH1B9siAsgVcU4v24J3JxEuNPKzsXB9zrbs/Ir+fPBC8GbchX itckA+bskHPWimMXYxTUHG3TwfQN4kcDexItD1nlhzhAFZrRT1OwgNREQmhJVnbiii7t Jz3A== X-Gm-Message-State: ALyK8tLWMED4cXY64af9FGVyXyQVqn1pLfP1nORXrvh+eGx4xqxinvegBwjdhXrbc6JCHTF3QcsuFunlEBHYiw== MIME-Version: 1.0 X-Received: by 10.25.78.3 with SMTP id c3mr4773490lfb.143.1465465320278; Thu, 09 Jun 2016 02:42:00 -0700 (PDT) Received: by 10.25.23.221 with HTTP; Thu, 9 Jun 2016 02:41:59 -0700 (PDT) Received: by 10.25.23.221 with HTTP; Thu, 9 Jun 2016 02:41:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Jun 2016 11:41:59 +0200 Message-ID: Subject: Re: How do I turn off Root logging in Log4j2 From: Richard Kolb To: Log4J Users List Content-Type: multipart/alternative; boundary=001a1141888ed893130534d53b45 --001a1141888ed893130534d53b45 Content-Type: text/plain; charset=UTF-8 Thanks Remko. On 09 Jun 2016 11:28 AM, "Remko Popma" wrote: > Please take a look at the Architecture manual page, specifically the > section on additivity. > > If you set additivity=false on the Logger configuration the log message > will only go to the named logger, and not to the root logger. > > Sent from my iPhone > > > On 2016/06/09, at 16:12, Richard Kolb wrote: > > > > Hello, > > > > Can someone please help me. > > I have a simple problem, that I can't solve. > > > > With the below log4j2.xml config, all of my logging from XApp, YApp and > > FApp also get logged by the root appender as well. > > So the root logger has a duplicate log. > > > > If I don't specify a Root logger, the logs get written to standard out. > > > > I'm using log4j2 2.5 with the lmax disruptor 3.3.4 > > > > thanks, > > Richard. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://gist.github.com/rjdkolb/1201d3f54bfc409bb1b1a9e6d2bb25f5 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --001a1141888ed893130534d53b45--