locked
EnterpriseLibrary Version 5.0: how to prevent logging extra data RRS feed

  • Question

  • User160031809 posted

    Using Microsoft.Practices.EnterpriseLibrary Version 5.0.

    How to stop writing the below into the log file , I am using "Rolling Flat File Trace Listener"

    Category:

    Priority:

    EventId:

    Severity:

    Title:

    Machine:

    App Domain:

    ProcessId:

    Process Name:

    Thread Name:

    Win32 ThreadId:

    Extended Properties:

    I am using the below Text formatter:

    <formatters> 
     
     
    <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
     
       
    template="Local Timestamp: {timestamp(local)}{newline}&#xA;Message: {message}{newline}&#xA;" 
     
       
    name="Text Formatter" /> 
     
    </formatters> 
    Wednesday, March 9, 2011 10:04 PM

All replies

  • User-49141863 posted

    You'll have to specify the name of the formatter in "Rolling Flat File Trace Listener". The formatter should be "Text Formatter".

    Wednesday, March 23, 2011 1:02 AM