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 28D21200C52 for ; Mon, 10 Apr 2017 15:38:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 277C3160B99; Mon, 10 Apr 2017 13:38:47 +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 70A61160B85 for ; Mon, 10 Apr 2017 15:38:46 +0200 (CEST) Received: (qmail 43132 invoked by uid 500); 10 Apr 2017 13:38:45 -0000 Mailing-List: contact issues-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@airavata.apache.org Received: (qmail 42962 invoked by uid 99); 10 Apr 2017 13:38:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 13:38:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EDDCA180684 for ; Mon, 10 Apr 2017 13:38:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id quVrvsbZtfEd for ; Mon, 10 Apr 2017 13:38:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 718B05FDFB for ; Mon, 10 Apr 2017 13:38:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CEA52E060F for ; Mon, 10 Apr 2017 13:38:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 888A324066 for ; Mon, 10 Apr 2017 13:38:41 +0000 (UTC) Date: Mon, 10 Apr 2017 13:38:41 +0000 (UTC) From: "Marcus Christie (JIRA)" To: issues@airavata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRAVATA-2363) Unable to configure logging with log4j.properties file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 13:38:47 -0000 [ https://issues.apache.org/jira/browse/AIRAVATA-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962867#comment-15962867 ] Marcus Christie commented on AIRAVATA-2363: ------------------------------------------- [~adhamnas], I'm fine with just using logback. We already know it works with the Kafka integration. I don't see any compelling reasons to use log4j 2. > Unable to configure logging with log4j.properties file > ------------------------------------------------------ > > Key: AIRAVATA-2363 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2363 > Project: Airavata > Issue Type: Bug > Components: Distribution > Affects Versions: 0.17 > Reporter: Marcus Christie > > Currently, when starting Airavata, I see this on the console: > {noformat} > SLF4J: Found binding in [jar:file:/home/airavata/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/lib/logback-classic-1.1.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in [jar:file:/home/airavata/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in [jar:file:/home/airavata/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] > {noformat} > This means that there are 3 different bindings for SLF4J. There should only be one. > It also appears that it is picking up the logback binding, although unfortunately it doesn't explicitly say so. I say that because I don't see any log4j messages when I add {{-Dlog4j.debug}} as an argument. > If I delete from the lib directory > * logback-classic-1.1.6.jar > * and slf4j-simple-1.7.25.jar > Then slf4j uses log4j and the log4j.properties file in the bin/ directory is used for configuration. > As it stands right now, we are providing a log4j.properties file in the bin/ directory of the distribution that doesn't actually do anything. We should give users a way to configure logging. > I think there are a few options: > * go with log4j12 logging > ** the logback logging was added, I think, for the Kafka integration, so removing logback would remove the Kafka integration > * go with logback logging > * switch to something else like log4j 2.x > ** log4j 2 has Kafka integration, but I'm not sure how well it works -- This message was sent by Atlassian JIRA (v6.3.15#6346)