Roberto Giménez wrote:
I have a logger that outputs lines which have a prefix. I have a problem
logging lines that contain newline characters, and the problem is that
only
the first line of text contains the prefix, the other ones are logged
without the prefix. The solution I think is the best is to extend the
class
Logger and override the info(...) methods so when Strings are passed they
are broken down in lines so I can info them one by one. Is this the best
solution?
You might consider adapting the Layout's
"Layout.format(LoggingEvent)"
In there, you can massage the LoggingEvent into several lines of your
format choice,
concatenate them and give back a multiline 'String'.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]