logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nestor.bos...@tcs.com.ve>
Subject Is there a way to use an array of objects in the log?
Date Fri, 28 Dec 2007 22:13:30 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message