On 2011-10-21, Stefan Bodewig wrote: > On 2011-10-19, Todd wrote:
>> I grabbed the latest version and now I can't log any exceptions, >> APPARENTLY because the format changed. My sproc expects the xml >> payload, but I now seem to be getting a formatted string. The >> stacktrace in the string can contain "<>", which causes the call to >> the sproc to fail. (it's expecting xml data, but only sees xml >> brackets inside) > The actual formatting happens via the IRawLayout in AdoNetAppender (this > is what I assume you are using). What does you configuration for this > look like? As a side-note. I have confirmed that XmlLayout by itself properly escapes any <> characters that are part of the stack trace: <https://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Layout/XmlLayoutTest.cs?r1=1187391&r2=1187390&pathrev=1187391> The stack trace format looks completely different from the XML you've posted in one of your posts, though. So I suspect some other kind of layout is in use for your case. Stefan