Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36245185FC for ; Sat, 23 Jan 2016 22:37:26 +0000 (UTC) Received: (qmail 8413 invoked by uid 500); 23 Jan 2016 22:37:25 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 8355 invoked by uid 500); 23 Jan 2016 22:37:25 -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 8344 invoked by uid 99); 23 Jan 2016 22:37:25 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2016 22:37:25 +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 2266FC0D52 for ; Sat, 23 Jan 2016 22:37:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.801 X-Spam-Level: X-Spam-Status: No, score=0.801 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s-ZIrG1U0_Oj for ; Sat, 23 Jan 2016 22:37:16 +0000 (UTC) Received: from smtp754.redcondor.net (smtp754.redcondor.net [208.80.206.54]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 072D743A86 for ; Sat, 23 Jan 2016 22:37:16 +0000 (UTC) Received: from mailproxy11.neonova.net ([137.118.22.76]) by smtp754.redcondor.net ({97b16bb2-c597-43ea-8fbe-137c536017bc}) via TCP (outbound) with ESMTP id 20160123223714918_0754 for ; Sat, 23 Jan 2016 22:37:14 +0000 X-RC-FROM: X-RC-RCPT: Received: from [192.168.1.14] (ip72-201-43-179.ph.ph.cox.net [72.201.43.179]) (Authenticated sender: ralph.goers@dslextreme.com) by mailproxy11.neonova.net (Postfix) with ESMTPA id 414C8360051 for ; Sat, 23 Jan 2016 17:37:11 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: How to properly create a RollingFileAppender with AppenderComponentBuilder in log4j 2 From: Ralph Goers In-Reply-To: <0EEC0F24-CC85-43D2-A8E6-9607A0339973@dslextreme.com> Date: Sat, 23 Jan 2016 15:37:10 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0EEC0F24-CC85-43D2-A8E6-9607A0339973@dslextreme.com> To: Log4J Users List X-Mailer: Apple Mail (2.2104) X-DLP-ENABLED: 137.118.22.64/27 X-MAG-OUTBOUND: greymail.redcondor.net@137.118.22.64/27 I modified the TestConfigurator unit test and posted the code to = StackOverflow. I=E2=80=99ll add it as another example to the docs. Ralph > On Jan 21, 2016, at 10:04 AM, Ralph Goers = wrote: >=20 > That would be the plan - except I will paste the code to stackoverflow = too. >=20 > Ralph >=20 >> On Jan 21, 2016, at 9:46 AM, Gary Gregory = wrote: >>=20 >> Ralph, perhaps this example should go in our docs/site and the reply = can be >> a link to it? >>=20 >> Gary >> On Jan 21, 2016 4:52 AM, "Ralph Goers" = wrote: >>=20 >>> Yes, I saw your post on stackoverflow. I will build an example for = you but >>> it will take a day or two as work is very busy right now, so please = be >>> patient. >>>=20 >>> Ralph >>>=20 >>>> On Jan 21, 2016, at 3:19 AM, Apostolis Giannakidis < >>> ap.giannakidis@gmail.com> wrote: >>>>=20 >>>> Hello log4j team, >>>>=20 >>>> I would like your assistance please. >>>>=20 >>>> I am new to the log4j 2 API and am I not sure how to properly = create a >>>> RollingFileAppender with the AppenderComponentBuilder in log4j 2. >>>>=20 >>>> I managed to create a syslog appender using the = AppenderComponentBuilder, >>>> but as far as creating a RollingFileAppender is concerned, I find = it to >>> be >>>> not that straightforward. >>>>=20 >>>> My main difficulty is that I do not know how to create a specific = pattern >>>> layout, triggering policy, and rollover strategy for the >>>> RollingFileAppender that I want to create using the >>>> AppenderComponentBuilder. Could you please provide a trivial = example of >>> how >>>> this can be done? >>>>=20 >>>> Thank you very much for your help. >>>>=20 >>>> Apostolos Giannakidis >>>> Apache Gora PMC >>>=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 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org