logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Pretty Layout of logging by class & method
Date Fri, 31 Aug 2007 15:18:30 GMT
You might be able to push a space character with NDC (and pop it when
you exit).  Then print the NDC as the first part of the message.

On 8/31/07, Faine, Mark R. (MSFC-NNM04AA02C)[SAIC] <mark.faine@nasa.gov> wrote:
>
> I'd like for Log4J to print the log messages with some sort of
> indentation, preferably by Class and Method
>
> Something like:
>
> Start Class1
>   Inside Main method...
>   Calling Sub method...
>     Inside Sub method...
>       Executing operations in sub method...
>     Sub Method success
>   Main Method success
> End Class1
> Start Class2
> ...
> End Class2
>
> Is this currently possible?
>
> Thanks,
> -Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James A. N. Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
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