logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Init style logging
Date Fri, 09 Jun 2006 10:10:48 GMT

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


Mime
View raw message