remove stack trace , Additional Info, <auto-generated> from log file http://forums.asp.net/t/1607283.aspx/1?remove+stack+trace+Additional+Info+auto+generated+from+log+file+Sat, 30 Oct 2010 13:09:16 -040016072834101753http://forums.asp.net/p/1607283/4101753.aspx/1?remove+stack+trace+Additional+Info+auto+generated+from+log+file+remove stack trace , Additional Info, <auto-generated> from log file <p>i am using belowcode in web.config&nbsp;</p> <p>&lt;loggingConfiguration name=&quot;&quot; tracingEnabled=&quot;true&quot; defaultCategory=&quot;General&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;listeners&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;Rolling Flat File Trace Listener&quot; type=&quot;Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; listenerDataType=&quot;Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; fileName=&quot;.\Logs\jeejix_error.log&quot; footer=&quot;------------Error End----------------------------&quot; formatter=&quot;Text Formatter&quot; header=&quot;---------Error Start-------------------------------&quot; rollFileExistsBehavior=&quot;Increment&quot; rollInterval=&quot;Day&quot; rollSizeKB=&quot;50&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/listeners&gt;<br> &nbsp;&nbsp;&nbsp; &lt;formatters&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add type=&quot;Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template=&quot;Message: {message}&amp;#xA;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Category: {category}{newline}&amp;#xA;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Severity: {severity}{newline}&amp;#xA;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Title:{title}{newline}&amp;#xA;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Machine: {localMachine}{newline})}&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=&quot;Text Formatter&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/formatters&gt;&nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp; &lt;categorySources&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add switchValue=&quot;Error&quot; name=&quot;General&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listeners&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;Rolling Flat File Trace Listener&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/listeners&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/add&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/categorySources&gt;<br> &nbsp;&nbsp;&nbsp; &lt;specialSources&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;allEvents switchValue=&quot;Error&quot; name=&quot;All Events&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;notProcessed switchValue=&quot;All&quot; name=&quot;Unprocessed Category&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;errors switchValue=&quot;Error&quot; name=&quot;Logging Errors &amp;amp; Warnings&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listeners&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;Rolling Flat File Trace Listener&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/listeners&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/errors&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/specialSources&gt;<br> &nbsp; &lt;/loggingConfiguration&gt;<br> &nbsp; &lt;exceptionHandling&gt;<br> &nbsp;&nbsp;&nbsp; &lt;exceptionPolicies&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;Policy&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;exceptionTypes&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;All Exceptions&quot; type=&quot;System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; postHandlingAction=&quot;NotifyRethrow&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;exceptionHandlers&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name=&quot;Logging Exception Handler&quot; type=&quot;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; logCategory=&quot;General&quot; eventId=&quot;100&quot; severity=&quot;Error&quot; title=&quot;Jeejix Exception Handling&quot; formatterType=&quot;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling&quot; priority=&quot;0&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/exceptionHandlers&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/add&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/exceptionTypes&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/add&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/exceptionPolicies&gt;<br> &nbsp; &lt;/exceptionHandling&gt;</p> <p>I want to remove stack trace , Additional Info, &lt;auto-generated&gt; from log file , which is not required </p> <p>do something need full <br> </p> <p>Thanks</p> <p><br> </p> <p><br> </p> <p><br> </p> <p><br> </p> 2010-09-28T13:22:26-04:004102824http://forums.asp.net/p/1607283/4102824.aspx/1?Re+remove+stack+trace+Additional+Info+auto+generated+from+log+fileRe: remove stack trace , Additional Info, <auto-generated> from log file <p>Try </p> <p></p> <p><font color="#a31515" size="2"><font color="#a31515" size="2">&lt;trace</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> </font></font><font color="#ff0000" size="2"><font color="#ff0000" size="2">enabled</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">&quot;</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">false</font></font><font size="2">&quot; /&gt;</font></p> <p></p> 2010-09-29T04:09:14-04:004147708http://forums.asp.net/p/1607283/4147708.aspx/1?Re+remove+stack+trace+Additional+Info+auto+generated+from+log+fileRe: remove stack trace , Additional Info, <auto-generated> from log file <p><font size="3" face="Times New Roman">Can you please suggest if&nbsp; I want remove only <font size="3" face="Times New Roman">Additional Info:</font></font></p> <p><font size="3" face="Times New Roman"></font>&nbsp;</p> <p><font size="3" face="Times New Roman">How I can add custom massage in the system generated massage ?</font></p> 2010-10-30T13:09:16-04:00