Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 42463 invoked from network); 9 Jun 2006 10:12:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jun 2006 10:12:41 -0000 Received: (qmail 63337 invoked by uid 500); 9 Jun 2006 10:12:40 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 62615 invoked by uid 500); 9 Jun 2006 10:12:38 -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 62603 invoked by uid 99); 9 Jun 2006 10:12:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 03:12:38 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.213] (HELO smtp114.sbc.mail.mud.yahoo.com) (68.142.198.213) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Jun 2006 03:12:37 -0700 Received: (qmail 2233 invoked from network); 9 Jun 2006 10:12:16 -0000 Received: from unknown (HELO ?192.168.10.102?) (curt.arnold@sbcglobal.net@72.181.12.112 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 9 Jun 2006 10:12:16 -0000 Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <200606091038.18962.piero.ottuzzi@omnys.it> References: <200606091038.18962.piero.ottuzzi@omnys.it> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Curt Arnold Subject: Re: Init style logging Date: Fri, 9 Jun 2006 05:10:48 -0500 To: Log4J Users List X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jun 9, 2006, at 3:38 AM, Piero Ottuzzi wrote: > Hi there, > > sometimes, only for aesthetic reasons, I would like to have logs > looking like > a linux machine starting services. > > Eg. > Starting eth0... [OK] > Starting cupsd... [KO] > > where in pseudocode things should be like > log.info("Starting eth0..."); //It should print this line NOW > doSomething();//something is happening... > log.info("[OK]");//It should print this line NOW > > Do you think is it possible? > Yes > Should I write my own appender? No, you should write your own layout. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org