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 A5D81200B27 for ; Wed, 8 Jun 2016 00:48:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A4420160A4F; Tue, 7 Jun 2016 22:48:18 +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 ED2DB160A36 for ; Wed, 8 Jun 2016 00:48:17 +0200 (CEST) Received: (qmail 39113 invoked by uid 500); 7 Jun 2016 22:48:17 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 39091 invoked by uid 99); 7 Jun 2016 22:48:16 -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; Tue, 07 Jun 2016 22:48:16 +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 5076CC0D08 for ; Tue, 7 Jun 2016 22:48:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=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 vJPZGqCfNfbQ for ; Tue, 7 Jun 2016 22:48:09 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4B31E5F1E5 for ; Tue, 7 Jun 2016 22:48:09 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id d64so139942612vkb.0 for ; Tue, 07 Jun 2016 15:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cN1LDU57/HiKpLxQ2d2qT93KuCzVxUztn4PVATSRztc=; b=y83FK05uBtQzfjT5RMR4KLbMXfWnGqI6FunFm6kbSH79U5LHGg2DSZOXv+KyKDHK8d QwaqvYUrqND9Ouek34C12Qt1LpDAHZqmq5muhpTxjj6n0Cs+6m3Q7HPH1qo07C3bRKZs MOFLZyPFwGonT3GfuNWl04A25u422BqdfYcQYlxgSGqmHSQC2Bcyax/2hsQK0q9QXY09 OG4pQeREJJ0boS0IX1iZKQjD+NcYD3YAzbUNNtq75I3XsDnyxTx1wYBwwdhtOblHBnC+ WbdCuVXeffEv9HIgQZL+Pp5kTmA2QzhHGMwjiCE/HB8IUXGMN9a5OPmt3uQeeH377SXt gk2g== 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:from:date :message-id:subject:to; bh=cN1LDU57/HiKpLxQ2d2qT93KuCzVxUztn4PVATSRztc=; b=B7YWhyNO/z4r3rM4xJq0OipSQGNzXhdUN7bZJhHKwKGeeWpUMhUSLtUrLwMRSsbpu1 /6JRSiD5qTKFs+wNMF5sFzJoSB0YYT5gKM+o+bSUu1Hx9hbXH0i8BJ6IR84iRNFE0vge SzwxzdxPEtjVO7e9JuBH33Ag4rhtjyvxC+Ry/41kUhOOkgBKUSIUIFPJE1mRHXK7Oi0L rut1AD8MKd5MoYCahBy3AycEabyjDszBwiyrp1fASDwFltYsB8dOlZHKRvXJJfIowfd/ cjGsOUa9x7A353PD6SpMKFn+jTNBbjh1yGeOXcRhCGSJKWf40Fdu2gIAz2ZYZBgqS8fj L7Wg== X-Gm-Message-State: ALyK8tIx/jzYG8tJiVKk2gXRLZUVQq0tDtpTd/hH96YFEV0IjC/xJdqiXjhqyCL2YchaJtH/ysEGvatMUyI0Sw== X-Received: by 10.31.168.138 with SMTP id r132mr964835vke.8.1465339688540; Tue, 07 Jun 2016 15:48:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.38.225 with HTTP; Tue, 7 Jun 2016 15:48:07 -0700 (PDT) In-Reply-To: References: From: Matt Sicker Date: Tue, 7 Jun 2016 17:48:07 -0500 Message-ID: Subject: Re: [crypto] Logging dependency To: Commons Developers List Content-Type: multipart/alternative; boundary=001a11415f809c630c0534b7fbf8 archived-at: Tue, 07 Jun 2016 22:48:18 -0000 --001a11415f809c630c0534b7fbf8 Content-Type: text/plain; charset=UTF-8 No library depends on (or should depend on) log4j 1.x as it ties you to log4j 1.x. Most projects have been using commons-logging or slf4j, but commons-logging has been superseded by log4j 2.x. Which logging library is actually used for configuration and the actual logging should be left to the end user. On 7 June 2016 at 17:41, Chris Nauroth wrote: > Could you please elaborate on the argument for not logging at all? As a > potential user of commons-crypto, I'll be reluctant to use it if it > doesn't provide adequate diagnostic logging when something goes wrong. > > Regarding the choice of Log4J 2, this is also something that could prevent > uptake. For better or worse, I need to support applications that > currently use Log4J 1, and therefore they will have an expectation that > logging can be tuned through a Log4J 1 log4j.properties or log4j.xml file. > I am not aware of any way for Log4J 2 to provide backwards-compatibility > with Log4J 1 configuration files. > > --Chris Nauroth > > > > > On 6/7/16, 9:07 AM, "sebb" wrote: > > >On 7 June 2016 at 16:42, Benedikt Ritter wrote: > >> Hello Gary, > >> > >> Gary Gregory schrieb am Di., 7. Juni 2016 um > >> 04:01 Uhr: > >> > >>> Hi All: > >>> > >>> IMO. if [crypto] is to have a dependency on a logging framework, it > >>>should > >>> be Log4j 2, not Commons Logging. Log4j 2 has an API module, which you > >>>can > >>> pair with any number of implementations: Log4j's own Core, JUL, SLF4J, > >>>and > >>> so on. > >>> > >> > >> I agree, but I'd say a low level component like crypto should not do any > >> logging at all. > >> > > > >+1 to not logging > > > >>> > >>> Gary > >>> > >>> -- > >>> E-Mail: garydgregory@gmail.com | ggregory@apache.org > >>> Java Persistence with Hibernate, Second Edition > >>> > >>> JUnit in Action, Second Edition > >>> Spring Batch in Action > >>> Blog: http://garygregory.wordpress.com > >>> Home: http://garygregory.com/ > >>> Tweet! http://twitter.com/GaryGregory > >>> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > >For additional commands, e-mail: dev-help@commons.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > -- Matt Sicker --001a11415f809c630c0534b7fbf8--