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 0D1A0200BCE for ; Fri, 2 Dec 2016 08:28:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0BCA3160B24; Fri, 2 Dec 2016 07:28:22 +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 2B6D6160B16 for ; Fri, 2 Dec 2016 08:28:21 +0100 (CET) Received: (qmail 4953 invoked by uid 500); 2 Dec 2016 07:28:20 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 4941 invoked by uid 99); 2 Dec 2016 07:28:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 07:28:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B54E71AA28D for ; Fri, 2 Dec 2016 07:28:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.1 X-Spam-Level: **** X-Spam-Status: No, score=4.1 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_SORBS_WEB=3.499, RP_MATCHES_RCVD=-2.999, URIBL_SBL=4, URIBL_SBL_A=0.1] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id K5hx85mlHJFo for ; Fri, 2 Dec 2016 07:28:17 +0000 (UTC) Received: from mx-out-2.rwth-aachen.de (mx-out-2.rwth-aachen.de [134.130.5.187]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 95C355F369 for ; Fri, 2 Dec 2016 07:28:16 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.33,285,1477954800"; d="scan'208";a="473128895" Received: from rwthex-w1-b.rwth-ad.de ([134.130.26.157]) by mx-2.rz.rwth-aachen.de with ESMTP; 02 Dec 2016 08:28:08 +0100 Received: from rwthex-w1-b.rwth-ad.de (2002:8682:1a9d::8682:1a9d) by rwthex-w1-b.rwth-ad.de (2002:8682:1a9d::8682:1a9d) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Fri, 2 Dec 2016 08:28:07 +0100 Received: from rwthex-w1-b.rwth-ad.de ([fe80::1f9:46de:5ad9:7ff]) by rwthex-w1-b.rwth-ad.de ([fe80::1f9:46de:5ad9:7ff%21]) with mapi id 15.00.1236.000; Fri, 2 Dec 2016 08:28:07 +0100 From: "Tungathurthi, Chandra Kiran Bharadwaj" To: Log4J Users List Subject: Re: Suggestion for docs improvement: What is a classpath? Thread-Topic: Suggestion for docs improvement: What is a classpath? Thread-Index: AQHSTEmCVsG67234c0OKOYbW/3fIwaD0HgsAgAAHToCAAAjHAIAAFF9/ Date: Fri, 2 Dec 2016 07:28:07 +0000 Message-ID: <1480663687505.9348@rwth-aachen.de> References: <20161202064309.4870223.48413.17666@capsicohealth.com>, In-Reply-To: Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [14.195.237.116] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 archived-at: Fri, 02 Dec 2016 07:28:22 -0000 =0A= Hi Arash, configuring =92System.property=92, =91classpath=92 are the basic = nuts and bolts of Java. If you have done any amount of programming =A0in Ja= va though basic. this should be self explanatory.=0A= =0A= try revisiting the basics and start executing java programs *without* an ID= E =97 this will be a good exercise.=0A= =0A= Now, having said that: log4j2 will =93automatically=94 detect your configur= ation available in the supported formats (points 1-9 in the section =93Auto= matic Configuration=94). Optionally, =A0if your config is in another place = or you would like to pick it up from a different location other than your p= roject =97 only then you need to set the property=A0log4j.configurationFile= =A0.=0A= =0A= I hope this makes it clear.=0A= =0A= Best,=0A= Chandra=0A= =0A= =0A= ----=0A= Thanks & regards,=0A= Chandra Tungathurthi=0A= +919966029604=0A= about.me/tckb=0A= =0A= ________________________________________=0A= From: Arash Rouhani Kalleh =0A= Sent: Friday, December 2, 2016 08:14=0A= To: Log4J Users List=0A= Subject: Re: Suggestion for docs improvement: What is a classpath?=0A= =0A= Laurent, although my Java use-case was very simple (1 file, < 100 lines). I= =0A= still needed to log to stdout+file at the same time. Hence I needed a=0A= logging framework (please correct me if I'm wrong). As Matt said, logging= =0A= is a "fundamental" library.=0A= =0A= At the same time I do agree with Luarent. The internet already define=0A= classpath at a gazillion places[1][2]. Let's not just restate what is=0A= there. I suggest something very practical and only geared to log4j2. What= =0A= about creating a repo like [3] and linking to it from the docs? Just make= =0A= it officially under the log4j2 organization and commit to keep it up to=0A= date. What do the community think?=0A= =0A= [1]:=0A= https://docs.oracle.com/javase/tutorial/essential/environment/paths.html=0A= [2]: https://en.wikipedia.org/wiki/Classpath_(Java)=0A= [3]: https://github.com/Tarrasch/log4j2-minimal-examples=0A= =0A= On Fri, Dec 2, 2016 at 1:43 PM, wrote:=0A= =0A= > Gotta explain what Jars are too! Joking aside, Java is a very= =0A= > complex and deep platform. For casual developers, why not just use=0A= > System.out.print? Do you really need a rich framework such as log4j for a= =0A= > casual java program? Just thinking about the simplest option for you here= ...=0A= >=0A= >=0A= >=0A= > Laurent Hasson=0A= > Co-Founder & CTO, CapsicoHealth Inc.=0A= > Sent from my BlackBerry Passport.=0A= >=0A= > Research has shown that capsaicin=97the substance that gives hot red=0A= > peppers (or chilies) their kick, and boosts our metabolism=97keeps=0A= > immature fat cells from developing into full-fledged ones. And a study=0A= > presented in April found that a compound in some sweet peppers=0A= > (called CH-19 Sweet), which resembles capsaicin, provides similar=0A= > positive metabolic effects=0A= >=0A= >=0A= > Original Message=0A= > From: Matt Sicker=0A= > Sent: Friday, December 2, 2016 01:17=0A= > To: Log4J Users List=0A= > Reply To: Log4J Users List=0A= > Subject: Re: Suggestion for docs improvement: What is a classpath?=0A= >=0A= > So you're saying you'd like the docs to include some basic introductory= =0A= > info on what a class path is, what system properties are, and how to=0A= > configure them all? Sounds like a good idea considering log4j is such a= =0A= > fundamental library that I wouldn't expect all users to know that sort of= =0A= > thing by default.=0A= >=0A= > On 1 December 2016 at 21:08, Arash Rouhani Kalleh <=0A= > arashrk@vng.com.vn.invalid> wrote:=0A= >=0A= > > Hi Log4j community!=0A= > >=0A= > > After getting a constructive response from mr. Gary Gregory on Twitter = on=0A= > > one of my rage-tweets[1]. I decided to take him up on that and send som= e=0A= > > feedback to this community.=0A= > >=0A= > > My bad experience came from spending maybe over an hour trying to just= =0A= > get=0A= > > the framework to pick up my config file. So here I come with a practica= l=0A= > > suggestion to remedy this: On this[2] docs page, under "Automatic=0A= > > Configuration". You would change the first occurrence of "system=0A= > property"=0A= > > and "classpath" into a hyperlink pointing to more information *how to= =0A= > > set *those=0A= > > values. The problem is that many casual programmers don't know (I=0A= > didn't).=0A= > > Would that make sense?=0A= > >=0A= > > Note that the mere definition of system property/classpath (the results= I=0A= > > would find when Googling the terms) are still of no use, because they= =0A= > lack=0A= > > practical information on how to include the log4j2 configuration file= =0A= > > inside my jar and having it being read by log4j2.=0A= > >=0A= > > Lastly, thanks to everybody who've contributed to this well-documented,= =0A= > > well-designed, efficient logging framework. The experience is good once= =0A= > > you've got the framework to pick up your configuration file. And the mo= re=0A= > > users who don't get frustrated in the phase before that, the more users= =0A= > > that have energy left over to contribute back. :)=0A= > >=0A= > > Cheers,=0A= > > Arash Rouhani=0A= > >=0A= > >=0A= > > [1]: https://twitter.com/ArashRouhani/status/775969974397480960=0A= > > [2]: http://logging.apache.org/log4j/2.x/manual/configuration.html=0A= > >=0A= >=0A= >=0A= >=0A= > --=0A= > Matt Sicker =0A= >=0A= > ---------------------------------------------------------------------=0A= > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org=0A= > For additional commands, e-mail: log4j-user-help@logging.apache.org=0A= >=0A= >=0A= --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org