From log4j-user-return-29478-archive-asf-public=cust-asf.ponee.io@logging.apache.org Wed Feb 19 15:32:08 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 65010180658 for ; Wed, 19 Feb 2020 16:32:08 +0100 (CET) Received: (qmail 90046 invoked by uid 500); 19 Feb 2020 15:32:07 -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 90035 invoked by uid 99); 19 Feb 2020 15:32:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2020 15:32:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E137FC0713 for ; Wed, 19 Feb 2020 15:32:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.21 X-Spam-Level: X-Spam-Status: No, score=0.21 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=0.2, KAM_DMARC_STATUS=0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id whfsRo_gFciv for ; Wed, 19 Feb 2020 15:32:05 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=208.80.203.2; helo=smtp.email-protect.gosecure.net; envelope-from=ralph.goers@dslextreme.com; receiver= Received: from smtp.email-protect.gosecure.net (smtp.email-protect.gosecure.net [208.80.203.2]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 9B013BB807 for ; Wed, 19 Feb 2020 15:32:05 +0000 (UTC) Received: from mailproxy12.neonova.net ([137.118.22.77]) by smtp.email-protect.gosecure.net ({104ac10a-3360-11ea-b6be-8733c6a5d622}) via TCP (outbound) with ESMTP id 20200219153158159_00000632 for ; Wed, 19 Feb 2020 07:31:58 -0800 X-RC-FROM: X-RC-RCPT: Received: from [192.168.1.129] (ip24-251-197-253.ph.ph.cox.net [24.251.197.253]) (Authenticated sender: ralph.goers@dslextreme.com) by mailproxy12.neonova.net (Postfix) with ESMTPA id E430E3656AD for ; Wed, 19 Feb 2020 10:31:53 -0500 (EST) From: Ralph Goers Content-Type: multipart/alternative; boundary="Apple-Mail=_FCF60DC1-76F4-4BD7-92BC-21B66C67AD6B" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: getAppender Date: Wed, 19 Feb 2020 08:31:53 -0700 References: To: Log4J Users List In-Reply-To: Message-Id: <8DAC488A-423F-4B96-9F06-03942A0476AE@dslextreme.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-DLP-OUTBOUND: 137.118.22.64/27 X-MAG-OUTBOUND: greymail.email-protect.gosecure.net@137.118.22.64/27 X-MAG-EWAV: ewavFastFail --Apple-Mail=_FCF60DC1-76F4-4BD7-92BC-21B66C67AD6B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 LoggerContext context =3D LogManager.getContext(=E2=80=9Cfalse=E2=80=9D); FileAppender appender =3D = context.getConfiguration().getAppender("info"); Ralph > On Feb 19, 2020, at 7:47 AM, EDMONDO SENA wrote: >=20 > Ok, but they are the API not examples.... >=20 >=20 >=20 >=20 > On 2020/02/19 14:29:41, Gary Gregory wrote:=20= >> Please see >> = https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging= /log4j/core/config/Configuration.html#getAppender-java.lang.String- >>=20 >> On Wed, Feb 19, 2020, 09:27 EDMONDO SENA wrote: >>=20 >>>=20 >>> Can you tell me where can I find out these examples? >>>=20 >>> Kind regards. >>> //Edmondo. >>>=20 >>>=20 >>> On 2020/02/19 14:09:52, Matt Sicker wrote: >>>> Appenders and such are part of the core library now. There are = likely >>>> features in log4j2 that could replace what you=E2=80=99re doing, = though. In any >>>> case, there=E2=80=99s plenty of examples of how that is done in the = tests. >>>>=20 >>>> On Wed, Feb 19, 2020 at 04:23 EDMONDO SENA = wrote: >>>>=20 >>>>> how to getAppender from logger? we have a lot of code to get the >>> appender >>>>> in the project: logger.getAppender(appenderName). I read the api = for >>> the >>>>> log4j2, I couldn't find any. >>>>>=20 >>>>> How can I fix it? >>>>>=20 >>>>> = --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >>>>> For additional commands, e-mail: = log4j-user-help@logging.apache.org >>>>>=20 >>>>> -- >>>> Matt Sicker >>>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >>> For additional commands, e-mail: log4j-user-help@logging.apache.org >>>=20 >>>=20 >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org >=20 >=20 --Apple-Mail=_FCF60DC1-76F4-4BD7-92BC-21B66C67AD6B--