Enterprise Library 4.1 - Logging and connectionstring

Last post 11-06-2009 8:08 AM by JohanNL. 1 replies.

Sort Posts:

  • Enterprise Library 4.1 - Logging and connectionstring

    03-05-2009, 7:52 AM
    • Participant
      1,635 point Participant
    • JohanNL
    • Member since 03-28-2003, 8:58 AM
    • Posts 1,196

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

     

    Johan Theunissen
    MCPD, MCSE, MCTS BizTalk 2006

    ==============================

    Please mark the most helpful reply/replies as "Answer".
  • Re: Enterprise Library 4.1 - Logging and connectionstring

    11-06-2009, 8:08 AM
    • Participant
      1,635 point Participant
    • JohanNL
    • Member since 03-28-2003, 8:58 AM
    • Posts 1,196

    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" />

    Johan Theunissen
    MCPD, MCSE, MCTS BizTalk 2006

    ==============================

    Please mark the most helpful reply/replies as "Answer".
Page 1 of 1 (2 items)