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 27833200C41 for ; Fri, 24 Mar 2017 11:50:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 260F5160B82; Fri, 24 Mar 2017 10:50:38 +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 448F0160B93 for ; Fri, 24 Mar 2017 11:50:37 +0100 (CET) Received: (qmail 14486 invoked by uid 500); 24 Mar 2017 10:50:35 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 14302 invoked by uid 99); 24 Mar 2017 10:50:35 -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; Fri, 24 Mar 2017 10:50:35 +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 02B5FC147E for ; Fri, 24 Mar 2017 10:50:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.604 X-Spam-Level: X-Spam-Status: No, score=0.604 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=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 hbAHHKVvzvmf for ; Fri, 24 Mar 2017 10:50:33 +0000 (UTC) Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 899AC5FB30 for ; Fri, 24 Mar 2017 10:50:33 +0000 (UTC) Received: by mail-vk0-f47.google.com with SMTP id z204so10958609vkd.1 for ; Fri, 24 Mar 2017 03:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/DAg4Zm2u8vtB7s952FMgzJU7fKAuF3IEo6r8l+9Mg0=; b=nru8B/a6tTiu0WJJnQTrTNF3DoOzDnTCu/xbzrTMG3b8dqRm1Hh6Udp/EG2lSw3WlH xThXNOh4mWVv1cL0xA3C+VplVSsXnoHSP9CXuLnRU1Fb/rGQw/sKGIio8fr/ZEFXDOgH NAzvE9Q2jhb3d6Wf532+RrL6cv2x4b1bjXacdj6krcXiZy2pMLnJwlYC/scz2gST6+Qc 2IVw9HBB6ZgCeyeTCMcZ/EG/iWa8pJL1uGU9OxcI6u8MiTj/X8899ZZbpkDi31gch6uD KkvATpqxrfkXfIUgcXdnrQM1bDJJiFJb6xUDWH4i3Jpdd3kmtMOoow1U4lj1uY0YxkTP Bg6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/DAg4Zm2u8vtB7s952FMgzJU7fKAuF3IEo6r8l+9Mg0=; b=PAukZyEwTWyhMpb8+TMPdg0tSY1zr2WBH9bexJf2VfdR4pGjIKk+wpSZog3ynpZMHv Kas/C8PycC4FmM8odVIpW4ZiQvn3/Bl010M9Xhwj61bQ+swlqdKTp2S7WtasiTFzFYm/ eALlJGlxRgWRt2PUlyTemsx0w3ZrpelpN48C2d4NXoXP1BmAqXfWJX8LVl6Pfbub6iNf sOH2G+cUHZkFBP5Aq4dhlUq89Iogoe+5GOyi4RtqXgpjPHuxORP6GJ69w+aq/GbSRbeU uJmr1l5Hm5dOYx6odulTuguS6BfPA9QLl5q7CVlHR+nQ8KDGirbzYxsKTN8gjnRoLcsv TgpA== X-Gm-Message-State: AFeK/H0L4jEWOJDdcD40WMSPzUCor7xwvn7BGNYdbRQ3Hk6ht9L+ahGxiT9g2AE2yEbVQYl/i2UWH9E43ez4nA== X-Received: by 10.159.36.150 with SMTP id 22mr3905526uar.48.1490352632751; Fri, 24 Mar 2017 03:50:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.18.222 with HTTP; Fri, 24 Mar 2017 03:50:32 -0700 (PDT) In-Reply-To: <1490301709792-11400.post@n6.nabble.com> References: <1490301709792-11400.post@n6.nabble.com> From: Andrey Mashenkov Date: Fri, 24 Mar 2017 13:50:32 +0300 Message-ID: Subject: Re: Logging ignite-log4j.jar To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a113e4d0c43eceb054b77c3d3 archived-at: Fri, 24 Mar 2017 10:50:38 -0000 --001a113e4d0c43eceb054b77c3d3 Content-Type: text/plain; charset=UTF-8 Hi Sam, 1. Looks like a bug. I think Ignite should not raise log level when adding console appender. Setting System property "IGNITE_CONSOLE_APPENDER" to true will set rootLogger level to OFF that can be unexpectedly as well. Seems, we should check if there is no other loggers configured which can inherits rootLogger logging level before turning rootLogger off. Right? 2. You can configure ConsoleAppender for RootLogger explicitly. Or override logging Level for other loggers. On Thu, Mar 23, 2017 at 11:41 PM, javastuff.sam@gmail.com < javastuff.sam@gmail.com> wrote: > Hi > > My application already uses Log4j for logging, simply adding > ignite-log4j.jar enables Ignite logging. I also added a new logger > configuration for package "org.apche.ignite" in my application logging > configuration, so that Ignite can log into a separate rolling file. > Ignite logging working fine. However rootLogger log level is changed to > INFO > by Ignite initialization, which is problematic for my application logging. > > Ignite configuration file does not have configuration for GridLogger, so at > initialization it tries to add a new consoleAppender with INFO level by > instantiating Log4JLogger(), here it also updates rootLogger to INFO. > > Question - > 1. Why does Ignite need to update rootLogger log level? > 2. Is this not the good way to configure logging for ignite using > ignite-log4j.jar? > > Thanks > -Sam > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Logging-ignite-log4j-jar-tp11400.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Andrey V. Mashenkov --001a113e4d0c43eceb054b77c3d3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Sam,

1. Looks like a bug. I think Ig= nite should not raise log level when adding console appender.=C2=A0
Setting System property "IGNITE_CONSOLE_APPENDER" to true = will set rootLogger level to OFF that can be unexpectedly as well.
Seems, we should check if there is no other loggers configured which = can inherits rootLogger logging level before turning rootLogger off.
<= div>
Right?

2. You can configure Con= soleAppender for RootLogger explicitly. Or override logging Level for other= loggers.



On Thu, Mar 23, 2017 at 11:41 PM, javastuff.sam@gmail.com <j= avastuff.sam@gmail.com> wrote:
Hi

My application already uses Log4j for logging, simply adding
ignite-log4j.jar enables Ignite logging. I also added a new logger
configuration for package "org.apche.ignite" in my application lo= gging
configuration, so that Ignite can log into a separate rolling file.
Ignite logging working fine. However rootLogger log level is changed to INF= O
by Ignite initialization, which is problematic for my application logging.<= br>
Ignite configuration file does not have configuration for GridLogger, so at=
initialization it tries to add a new consoleAppender with INFO level by
instantiating Log4JLogger(), here it also updates rootLogger to INFO.

Question -
1. Why does Ignite need to update rootLogger log level?
2. Is this not the good way to configure logging for ignite using
ignite-log4j.jar?

Thanks
-Sam



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Logging-<= wbr>ignite-log4j-jar-tp11400.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Best regards,
Andrey V. Mashenkov
--001a113e4d0c43eceb054b77c3d3--