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 BFA30200B77 for ; Sat, 20 Aug 2016 06:55:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE30C160AAB; Sat, 20 Aug 2016 04:55:22 +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 101CA160AAC for ; Sat, 20 Aug 2016 06:55:21 +0200 (CEST) Received: (qmail 64332 invoked by uid 500); 20 Aug 2016 04:55:20 -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 64317 invoked by uid 99); 20 Aug 2016 04:55:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2016 04:55:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 76EEA2C014F for ; Sat, 20 Aug 2016 04:55:20 +0000 (UTC) Date: Sat, 20 Aug 2016 04:55:20 +0000 (UTC) From: "Ralph Goers (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1529) composite configurations do not merge attributes on logger nodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 Aug 2016 04:55:22 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15429219#comment-15429219 ] Ralph Goers commented on LOG4J2-1529: ------------------------------------- And feel free to create patches for other issues that interest you! > composite configurations do not merge attributes on logger nodes > ---------------------------------------------------------------- > > Key: LOG4J2-1529 > URL: https://issues.apache.org/jira/browse/LOG4J2-1529 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.6.2 > Reporter: Sridevi Narra > Assignee: Matt Sicker > Fix For: 2.7 > > Attachments: log4j2-1529.diff > > > According to Log4j2 Composite configuration documentation (https://logging.apache.org/log4j/2.x/manual/configuration.html#CompositeConfiguration) as given below, logger attributes should be merged. > "Loggers are all aggregated. Logger attributes are individually merged with duplicates being replaced by those in later configurations. ..." > However, if I have a 2 files that are composed with different Root Logger levels as given below, only the root level is used. I am not able to override the root logger level in the second file. > file1.xml: > {code} > > > > > > > > > > > > > {code} > file2.xml: > {code} > > > > > > > > {code} > Command line arg: > -Dlog4j.configurationFile=file1.xml,file2.xml > Actual: The resulting log level is "warn" > Expected: log level to be "info" -- 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