Robert Pepersack wrote:
> Note that the second line isn't prefixed with the text
> created by my subclass of PatternLayout.
>
> How can I get all the output to be prefixed with the layout
> that I specify?  For example:
>
> 2008-04-30 08:59:01 [MyThread] DEBUG MyClass.myMethod(): 220
> Connected to server. 2008-04-30 08:59:01 [MyThread] DEBUG
> MyClass.myMethod(): 220 Connection will close if idle for more than 5
> minutes.
>

Hi Robert --

You would need to split the line on the line separator, and call a log method 
for each line.

HTH,

--
David Britton <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to