Hi Paul,
At 06:44 PM 9/11/2003 +1000, Paul Smith wrote:
Thanks Ceki for the tips.
The reason I am keen to do this is that Chainsaw v2 now uses a Pattern Layout to render the the currently Selected event in both a Detail panel, and via Tooltips. I've got a Pattern Editor dialog setup so the user can edit the patterns.
The previous version of Chainsaw formatted the event by hand, and if the event contained Throwable information, it printed the stack trace inside the panel.
I've realised that since the move to re-use all the Log4j layout infrastructure, that the Stack trace is not viewable inside the detail panel.
So perhaps it's not generally useful, but it seems funny not to be able to out this information as an option for PatternLayout.
True. It kind of breaks the illusion that PatternLayout can handle everything thrown at it, which is not exactly true because conversion patterns cannot deal with conditionals. So the %T conversion character must be silent when there is no exception to log and print the stack trace if there is one.
Here is a practical consideration. I do not think there is much leeway regarding location of the %T conversion character. It must be always at the end. Right?
Do you see where I am getting at?
Paul
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp See you in November at ApacheCon US 2003 in Las Vegas.
http://apachecon.com/--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
