Mantis - Resin
Viewing Issue Advanced Details
3229 minor always 01-08-09 16:42 03-01-10 12:50
ferg  
ferg  
urgent  
closed 3.0.25  
fixed  
none    
none 4.0.6  
0003229: log file formatting
(rep by Jamison Novak)

I'm struggling with some log formatting in Resin 3.0 and I'm hoping you can point me in the right direction. I've been unsuccessful in finding anything about this in documentation.
 
We are currently logging Java exceptions (or stack traces/dumps, if you prefer) and, since they can be very long and typically multi-line, Resin puts a timestamp in front of each part of the exception even though it's all one big error. Is there any way to prevent that from happening and to only have a timestamp on the first part of it? For example:
 
Bad:
[01/08/09:08:16:25] java.lang.NullPointerException
[01/08/09:08:16:25] at com.foo.agent.action.pkg.shared.booking.ServiceAssignmentAction.doBookingWork(Unknown Source)
[01/08/09:08:16:25] at com.foo.agent.action.pkg.shared.booking.BookingAction.doPkgProcessWork(Unknown Source)
[01/08/09:08:16:25] at com.foo.agent.action.pkg.PkgProcessAction.doPkgWork(Unknown Source)
[ ... ]
 
Good:
 
[01/08/09:08:16:25] java.lang.NullPointerException
                                at com.foo.agent.action.pkg.shared.booking.ServiceAssignmentAction.doBookingWork(Unknown Source)
                                at com.foo.agent.action.pkg.shared.booking.BookingAction.doPkgProcessWork(Unknown Source)
                                at com.foo.agent.action.pkg.PkgProcessAction.doPkgWork(Unknown Source)
[...]
 
 
We are attempting to import our Resin logs into a centralized log system and, because of that time stamping, it is interpreting each of those lines from a single exception as unrelated events. We are looking for a way to get it to be treated as a single log event.
 
Any thoughts? I'm really at a loss.
 

Notes
(0003907)
ferg   
03-19-09 10:22   
server/02d3
(0004325)
alex   
12-08-09 18:09   
<log-handler> prints time stamp for each line using default resin.xml in 4.0.2
(0004501)
ferg   
03-01-10 12:50   
env/02d4