I want to separate exception's stack trace from their message. for instance in this example:
System.NullReferenceException: Object reference not set to an instance of an object.
at BettweenSvc.Bettweensvc.processRequest(RequestManagerRepository rmr, RequestConversation rc) in C:\Repository\bettween\trunk\Solution\BettweenSvc\Bettweensvc.cs:line 277
at BettweenSvc.Bettweensvc.bettweenTimer_Elapsed(Object sender, ElapsedEventArgs e) in C:\Repository\bettween\trunk\Solution\BettweenSvc\Bettweensvc.cs:line 111
I want to log
System.NullReferenceException: Object reference not set to an instance of an object.
in one field and the rest in another
Currently I have
<parameter>
<parameterName value="@exception" />
<dbType value="String" />
<size value="2000" />
<layout type="log4net.Layout.ExceptionLayout" />
</parameter>
in my AdoNetAppender, how would I do this?