Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34644756A for ; Mon, 21 Nov 2011 16:46:42 +0000 (UTC) Received: (qmail 82750 invoked by uid 500); 21 Nov 2011 16:46:42 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 82704 invoked by uid 500); 21 Nov 2011 16:46:42 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 82696 invoked by uid 99); 21 Nov 2011 16:46:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 16:46:42 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 16:46:35 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RSX0Z-0006rv-M1 for log4j-dev@logging.apache.org; Mon, 21 Nov 2011 08:46:15 -0800 Message-ID: <32871053.post@talk.nabble.com> Date: Mon, 21 Nov 2011 08:46:15 -0800 (PST) From: Kikou1984 To: log4j-dev@logging.apache.org Subject: Re: Find word in log In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: oueslati.hichem@gmail.com References: <32870799.post@talk.nabble.com> <1869253A-ABC0-4D98-8FC4-972EEEF21C22@dslextreme.com> <32871018.post@talk.nabble.com> Yes, i should make as you said, but i want to use the first logger which contains the string "[SUIVI_TRT]". I want to create like a parse , catch logger where contains [SUIVI_TRT] and put this ligne on a new logger. ralph.goers @dslextreme.com wrote: > > Then to write to the second log you will need to write your own Layout and > parse out what you want from the message. > > Ralph > > On Nov 21, 2011, at 8:31 AM, Kikou1984 wrote: > >> >> Hi , >> >> thank u for u r anserw, I have to work with the existing log. >> >> >> >> ralph.goers @dslextreme.com wrote: >>> >>> Do you have the ability to modify the program or do you have to work >>> with >>> the existing log that is being generated? >>> >>> Ralph >>> >>> On Nov 21, 2011, at 6:41 AM, Kikou1984 wrote: >>> >>>> Hello, I got a program , it uses log4J for creating log. Exemple : >>>> log.info("[SUIVI_TRT] [TrtStart : UPDATE_BORDERO]" + " [InputFile=" + >>>> args[2] + "] [ParamFile=" + args[1] + "] [OutputPath="+args[3]+"] >>>> [mode=" >>>> +args[0]+"]" +"[XmlConfigMail =" + args[4] + "]"); I would like to >>>> create >>>> another Log, which contains only Log with this String "[SUIVI_TRT]". Is >>>> it possible ?!! >>>> View this message in context: Find word in log >>>> Sent from the Log4j - Dev mailing list archive at Nabble.com. >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Find-word-in-log-tp32870799p32871018.html >> Sent from the Log4j - Dev mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org >> For additional commands, e-mail: log4j-dev-help@logging.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-dev-help@logging.apache.org > > > -- View this message in context: http://old.nabble.com/Find-word-in-log-tp32870799p32871053.html Sent from the Log4j - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org