Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D278411AFF for ; Fri, 15 Aug 2014 12:44:30 +0000 (UTC) Received: (qmail 73378 invoked by uid 500); 15 Aug 2014 12:44:29 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 73290 invoked by uid 500); 15 Aug 2014 12:44:28 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 72773 invoked by uid 99); 15 Aug 2014 12:44:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2014 12:44:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stevel@hortonworks.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-ig0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2014 12:44:02 +0000 Received: by mail-ig0-f177.google.com with SMTP id hn18so1674612igb.10 for ; Fri, 15 Aug 2014 05:44:01 -0700 (PDT) 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:cc:content-type; bh=Hdc+0kXhwqx6nPINNo+VylalfcTY9bfQSvMC0Fie2U0=; b=aiBFbMnF2/y6xHkK1z261fl3eHwmw4EbicsmaICoR87WP8S/hZHNobn75VfipCg4ry Ke3QIIbZAI4b0akPyJnLkhF1SSi3zU7LQJl2OKeYp6p0elbSNaK11Rj0wivgfZwgyue3 o+hZCPeldMPsSNZ8ZsIaFcfsM+4VWrmSAfrM7iDXHugUt17+guicBiewYHujLUIFpH+p 0MVYjwKCY5cjs5MB8sskoSaLxG7F1wKZfeFSz1ZqxOjPuoEWUHWQGM3qjUvDwio0fGIo FnKLaJCbMkXfDHRWpWvHsPECGx9TzYqCJ0KR3+2gm3e1lOoz0mCY1uQrXsdZcBf8GmFm 8Zrw== X-Gm-Message-State: ALoCoQkgSzoCHEwZ8wuJpzqwhLaAU/EE26MKBWviXTV6EbeEx/7xfihImTtcKqn1itE7RaWRGYhnRiciWRGvp/Rn5ikt/wGnTIbr/RXh26ZRvLUkJRNlI6s= MIME-Version: 1.0 X-Received: by 10.42.249.20 with SMTP id mi20mr165986icb.90.1408106641125; Fri, 15 Aug 2014 05:44:01 -0700 (PDT) Received: by 10.107.12.193 with HTTP; Fri, 15 Aug 2014 05:44:01 -0700 (PDT) In-Reply-To: References: Date: Fri, 15 Aug 2014 13:44:01 +0100 Message-ID: Subject: Re: [DISCUSS] Switch to log4j 2 From: Steve Loughran To: "hdfs-dev@hadoop.apache.org" Cc: "yarn-dev@hadoop.apache.org" , "common-dev@hadoop.apache.org" Content-Type: multipart/alternative; boundary=20cf3011e1252684020500aa601b X-Virus-Checked: Checked by ClamAV on apache.org --20cf3011e1252684020500aa601b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable moving to SLF4J as an API is independent =E2=80=94it's just a better API fo= r logging than commons-logging, was already a dependency and doesn't force anyone to switch to a new log back end. On 15 August 2014 03:34, Tsuyoshi OZAWA wrote: > Hi, > > Steve has started discussion titled "use SLF4J APIs in new modules?" > as a related topic. > > http://mail-archives.apache.org/mod_mbox/hadoop-common-dev/201404.mbox/%3= CCA+4kjVv_9cMmTDQZCgZy-CHSLyB1WkGdUNXS7wrhesLwbuHJjQ@mail.gmail.com%3E > > It sounds good to me to use asynchronous logging when we log INFO. One > concern is that asynchronous logging makes debugging difficult - I > don't know log4j 2 well, but I suspect that ordering of logging can be > changed even if WARN or FATAL are logged with synchronous logger. > > Thanks, > - Tsuyoshi > > On Thu, Aug 14, 2014 at 6:44 AM, Arpit Agarwal > wrote: > > I don't recall whether this was discussed before. > > > > I often find our INFO logging to be too sparse for useful diagnosis. A > high > > performance logging framework will encourage us to log more. > Specifically, > > Asynchronous Loggers look interesting. > > https://logging.apache.org/log4j/2.x/manual/async.html#Performance > > > > What does the community think of switching to log4j 2 in a Hadoop 2.x > > release? > > > > -- > > CONFIDENTIALITY NOTICE > > NOTICE: This message is intended for the use of the individual or entit= y > to > > which it is addressed and may contain information that is confidential, > > privileged and exempt from disclosure under applicable law. If the read= er > > of this message is not the intended recipient, you are hereby notified > that > > any printing, copying, dissemination, distribution, disclosure or > > forwarding of this communication is strictly prohibited. If you have > > received this communication in error, please contact the sender > immediately > > and delete it from your system. Thank You. > --=20 CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to= =20 which it is addressed and may contain information that is confidential,=20 privileged and exempt from disclosure under applicable law. If the reader= =20 of this message is not the intended recipient, you are hereby notified that= =20 any printing, copying, dissemination, distribution, disclosure or=20 forwarding of this communication is strictly prohibited. If you have=20 received this communication in error, please contact the sender immediately= =20 and delete it from your system. Thank You. --20cf3011e1252684020500aa601b--