Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E72F116DB for ; Sat, 26 Apr 2014 22:38:16 +0000 (UTC) Received: (qmail 35588 invoked by uid 500); 26 Apr 2014 22:38:15 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 35493 invoked by uid 500); 26 Apr 2014 22:38:15 -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 35485 invoked by uid 99); 26 Apr 2014 22:38:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2014 22:38:14 +0000 Date: Sat, 26 Apr 2014 22:38:14 +0000 (UTC) From: "Matt Sicker (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (LOG4J2-615) Why Rolling file appender writes to console also. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Sicker resolved LOG4J2-615. -------------------------------- Resolution: Invalid That's the expected behaviour. Check out [the manual about additivity|http://logging.apache.org/log4j/2.x/manual/configuration.html#Additivity] for details on disabling that. Basically, you want to add {{additivity="false"}} to each of your {{AsyncLogger}} tags to disable that. > Why Rolling file appender writes to console also. > ------------------------------------------------- > > Key: LOG4J2-615 > URL: https://issues.apache.org/jira/browse/LOG4J2-615 > Project: Log4j 2 > Issue Type: Bug > Environment: Java 7 > Reporter: sivan > Priority: Critical > > Rolling file appender writes to console also. java 7 is used. The configuration is as below. > > > > ${sys:logPattern} > ${sys:logfilepath}//$${date:yyyy-MM}//${sys:oft.appserver}-out-%d{yyyy-MM-dd}.log > ${sys:logfilepath}//${sys:oft.appserver}-out.log > > > > > ${patternUMP} > > > > > > > > > > > > > > > > > > > > -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org