logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Is there a way to use an array of objects in the log?
Date Sun, 30 Dec 2007 23:02:11 GMT

Yes, but not with the stock Log4j.  Look at LogMF and LogSF in the extras companion.

http://logging.apache.org/log4j/companions/extras/download.html

Jake

Néstor Boscán wrote:
> Hi
>  
> Is there a way to send to the log an array of strings and then format them
> using a pattern. Something like:
>  
> %d{dd-MM-yyyy hh:mm:ss,SSS}|%-5p|%-10m{0}|%-10m{1}|%-10m{2}|%-10m{3}%n
>  
> were
>  
> m{0}: Get object on index 0
> m{1}: Get object on index 1
> m{2}: Get object on index 2
>  
> Is this possible?
>  
> Regards,
>  
> Néstor Boscán
> 

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