locked
Enterprise Library 4.1 - Logging and connectionstring RRS feed

  • Question

  • User-1386562875 posted

    How do I configure the connectionstring for a SQL Log database for the Logging Application block of Ent Lib 4.1?

     

    Thursday, March 5, 2009 7:52 AM

All replies

  • User-1386562875 posted

    Found it!

    Via the Listerners:

    <listeners>
    add
    databaseInstanceName="csLogging" writeLogStoredProcName="WriteLog"

     addCategoryStoredProcName="AddCategory" formatter="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

     

    traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

     

    name="Database Trace Listener" />

    Friday, November 6, 2009 8:08 AM